-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathTDL.PAS
71 lines (61 loc) · 1.32 KB
/
TDL.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
program tdl;
{$I tdl_dire.inc}
{
Total DOS Launcher, main program.
Initial author Jim Leonard, started 20170211
}
uses
{$IFDEF USEOVERLAYS}
tdl_over, {must be first in uses clause}
{$ENDIF}
support,
tdl_main,
tdl_conf,
tdl_inde,
tdl_cons,
tdl_hand,
tdl_audi;
{$IFDEF USEOVERLAYS}
{Note: documentation discourages overlaying TOTSYS, TOTINPUT, and TOTFAST}
{$O totDATE}
{$O totFAST}
{$O totINPUT}
{$O totIO1}
{$O totIO2}
{$O totKEY}
{$O totLINK}
{$O totLIST}
{$O totLOOK}
{$O totMISC}
{$O totMSG}
{$O totREAL}
{$O totSTR}
{$O totSYS}
{$O totWIN}
{$O dos}
{$O support}
{$O objects}
{$O cmdlin}
{$O inifiles}
{$O tdl_conf}
{$O tdl_cons}
{$O tdl_hand}
{$O tdl_main}
{$O tdl_audi}
{{$O tdl_tset} {title sets are used in the main picker, do not overlay}
{{$O tdl_glob} {no need to overlay global, it has no code}
{{$O tdl_inde} {the indexing routines MUST be fast, do not overlay}
{$ENDIF}
var
_memavail:longint;
begin
{memory leak detection -- this MUST be the first line of the program}
_memavail:=memavail;
TDL_Init;
TDL_EventLoop;
TDL_Done;
{memory leak detection -- these MUST be the last lines of the program}
if _memavail<>memavail
then fatalerror(255,'Memory leak detected: '
+inttostr(_memavail-memavail)+' bytes unaccounted for');
end.