DEADSOFTWARE

5a10057095b200a1a0a8c1daf75c2ef5505994aa
[d2df-sdl.git] / src / game / Doom2DF.dpr
1 program Doom2DF;
2 {$IFNDEF HEADLESS}
3 {$IFDEF WIN32}
4 {$APPTYPE GUI}
5 {$ENDIF}
6 {$ENDIF}
7 {$HINTS OFF}
9 {$UNDEF XXX}
10 {$IFDEF USE_SDLMIXER}
11 {$DEFINE XXX}
12 {$ENDIF}
13 {$IFDEF USE_FMOD}
14 {$IFDEF XXX}
15 {$ERROR define one of USE_SDLMIXER or USE_FMOD}
16 {$ELSE}
17 {$DEFINE XXX}
18 {$ENDIF}
19 {$ENDIF}
21 {$IFNDEF XXX}
22 {$ERROR define USE_SDLMIXER or USE_FMOD}
23 {$ENDIF}
25 uses
26 GL,
27 GLExt,
28 SDL2 in '../lib/sdl2/sdl2.pas',
29 {$IFDEF USE_SDLMIXER}
30 SDL2_mixer in '../lib/sdl2/SDL2_mixer.pas',
31 {$ENDIF}
32 ENet in '../lib/enet/enet.pp',
33 ENetTypes in '../lib/enet/enettypes.pp',
34 ENetList in '../lib/enet/enetlist.pp',
35 ENetTime in '../lib/enet/enettime.pp',
36 ENetProtocol in '../lib/enet/enetprotocol.pp',
37 ENetCallbacks in '../lib/enet/enetcallbacks.pp',
38 ENetPlatform in '../lib/enet/enetplatform.pp',
39 e_graphics in '../engine/e_graphics.pas',
40 e_input in '../engine/e_input.pas',
41 e_log in '../engine/e_log.pas',
42 e_sound in '../engine/e_sound.pas',
43 e_textures in '../engine/e_textures.pas',
44 e_fixedbuffer in '../engine/e_fixedbuffer.pas',
45 sfs in '../sfs/sfs.pas',
46 sfsPlainFS in '../sfs/sfsPlainFS.pas',
47 sfsZipFS in '../sfs/sfsZipFS.pas',
48 xstreams in '../shared/xstreams.pas',
49 utils in '../shared/utils.pas',
50 wadreader in '../shared/wadreader.pas',
51 MAPSTRUCT in '../shared/MAPSTRUCT.pas',
52 MAPREADER in '../shared/MAPREADER.pas',
53 MAPDEF in '../shared/MAPDEF.pas',
54 CONFIG in '../shared/CONFIG.pas',
55 g_basic in 'g_basic.pas',
56 g_console in 'g_console.pas',
57 g_net in 'g_net.pas',
58 g_netmsg in 'g_netmsg.pas',
59 g_nethandler in 'g_nethandler.pas',
60 g_netmaster in 'g_netmaster.pas',
61 g_res_downloader in 'g_res_downloader.pas',
62 g_game in 'g_game.pas',
63 g_gfx in 'g_gfx.pas',
64 g_gui in 'g_gui.pas',
65 g_items in 'g_items.pas',
66 g_main in 'g_main.pas',
67 g_map in 'g_map.pas',
68 g_menu in 'g_menu.pas',
69 g_monsters in 'g_monsters.pas',
70 g_options in 'g_options.pas',
71 g_phys in 'g_phys.pas',
72 g_player in 'g_player.pas',
73 g_playermodel in 'g_playermodel.pas',
74 g_saveload in 'g_saveload.pas',
75 g_sound in 'g_sound.pas',
76 g_textures in 'g_textures.pas',
77 g_triggers in 'g_triggers.pas',
78 g_weapons in 'g_weapons.pas',
79 g_window in 'g_window.pas',
80 sysutils,
81 {$IFDEF USE_FMOD}
82 fmod in '../lib/FMOD/fmod.pas',
83 fmoderrors in '../lib/FMOD/fmoderrors.pas',
84 fmodpresets in '../lib/FMOD/fmodpresets.pas',
85 fmodtypes in '../lib/FMOD/fmodtypes.pas',
86 {$ENDIF}
87 BinEditor in '../shared/BinEditor.pas',
88 g_panel in 'g_panel.pas',
89 g_language in 'g_language.pas';
91 {$IFDEF WIN32}
92 {$R *.res}
93 {$R CustomRes.res}
94 {$ENDIF}
96 var
97 f: Integer;
98 noct: Boolean = false;
99 begin
100 for f := 1 to ParamCount do if ParamStr(f) = '--gdb' then noct := true;
101 if noct then
102 Main()
103 else
104 try
105 Main();
106 e_WriteLog('Shutdown with no errors.', MSG_NOTIFY);
107 except
108 on E: Exception do
109 e_WriteLog(Format(_lc[I_SYSTEM_ERROR_MSG], [E.Message]), MSG_FATALERROR);
110 else
111 e_WriteLog(Format(_lc[I_SYSTEM_ERROR_UNKNOWN], [LongWord(ExceptAddr())]), MSG_FATALERROR);
112 end;
113 end.