-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.pas
53 lines (43 loc) · 1 KB
/
entrypoint.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
unit entrypoint;
interface
uses
windows, System.SysUtils, jsruntime, judithkernel, classes, logger;
const
version_info = '0.2';
version_arch = 'x64';
version_date = 'May 2024';
version_info_long = version_arch + ' | ' + 'v' + version_info + ' | ' + version_date;
logfilename = 'engine.log';
libpath = '';
var
__shutdown: Boolean;
__done: Boolean;
boot: Boolean;
root: string;
ahandle: THandle;
index: string;
WM_JUDITH: DWORD;
judith: Tjudith;
mode: integer;
nokill: boolean;
scripts: array of string;
log: Tlogger;
killedparent: boolean;
parentid: cardinal;
repl: boolean;
incel: boolean;
printver:boolean;
update:boolean;
implementation
uses
console;
procedure debug(text: string);
begin
if assigned(log) then
log.write(text);
if mode = 3 then
MessageBox(GetForegroundWindow, pchar(text), pchar('GDI.js'), MB_ICONWARNING or MB_OK)
else
WriteColoredText(text, FOREGROUND_NORMAL);
end;
end.