DEADSOFTWARE

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