2020-12-13 18:36:10 +01:00
|
|
|
program TinyBrowser2;
|
2019-12-18 15:10:30 +01:00
|
|
|
|
2020-12-13 18:36:10 +01:00
|
|
|
{$MODE Delphi}
|
2019-12-18 15:10:30 +01:00
|
|
|
|
|
|
|
uses
|
|
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
|
|
cthreads,
|
|
|
|
{$ENDIF}{$ENDIF}
|
2020-12-13 18:36:10 +01:00
|
|
|
uCEFApplication,
|
|
|
|
uTinyBrowser2 in 'uTinyBrowser2.pas';
|
2019-12-18 15:10:30 +01:00
|
|
|
|
2020-12-13 18:36:10 +01:00
|
|
|
{.$R *.res}
|
|
|
|
|
|
|
|
{$IFDEF WIN32}
|
|
|
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
{$SetPEFlags $20}
|
|
|
|
{$ENDIF}
|
2019-12-18 15:10:30 +01:00
|
|
|
|
|
|
|
begin
|
|
|
|
CreateGlobalCEFApp;
|
|
|
|
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
|
|
begin
|
2020-12-13 18:36:10 +01:00
|
|
|
GlobalCEFApp.RunMessageLoop;
|
|
|
|
DestroyTinyBrowser;
|
2019-12-18 15:10:30 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
DestroyGlobalCEFApp;
|
|
|
|
end.
|