1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-04-27 07:02:21 +02:00

29 lines
525 B
ObjectPascal
Raw Normal View History

unit uCEFLoader;
{$I ..\..\..\source\cef.inc}
interface
uses
uCEFApplicationCore;
implementation
procedure StartCEFSubprocess;
begin
GlobalCEFApp := TCefApplicationCore.Create;
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.ExternalMessagePump := True;
GlobalCEFApp.MultiThreadedMessageLoop := False;
GlobalCEFApp.InitLibLocationFromArgs;
GlobalCEFApp.StartSubProcess;
end;
initialization
StartCEFSubprocess;
finalization
DestroyGlobalCEFApp;
end.