DEADSOFTWARE

added Vampyre Imaging Library; now textures can be in various formats, including...
[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 GL,
28 GLExt,
29 SDL2 in '../lib/sdl2/sdl2.pas',
30 {$IFDEF USE_SDLMIXER}
31 SDL2_mixer in '../lib/sdl2/SDL2_mixer.pas',
32 {$ENDIF}
33 ENet in '../lib/enet/enet.pp',
34 ENetTypes in '../lib/enet/enettypes.pp',
35 ENetList in '../lib/enet/enetlist.pp',
36 ENetTime in '../lib/enet/enettime.pp',
37 ENetProtocol in '../lib/enet/enetprotocol.pp',
38 ENetCallbacks in '../lib/enet/enetcallbacks.pp',
39 ENetPlatform in '../lib/enet/enetplatform.pp',
40 e_graphics in '../engine/e_graphics.pas',
41 e_input in '../engine/e_input.pas',
42 e_log in '../engine/e_log.pas',
43 e_sound in '../engine/e_sound.pas',
44 e_textures in '../engine/e_textures.pas',
45 e_fixedbuffer in '../engine/e_fixedbuffer.pas',
46 utils in '../shared/utils.pas',
47 xstreams in '../shared/xstreams.pas',
48 sfs in '../sfs/sfs.pas',
49 sfsPlainFS in '../sfs/sfsPlainFS.pas',
50 sfsZipFS in '../sfs/sfsZipFS.pas',
51 wadreader in '../shared/wadreader.pas',
52 MAPSTRUCT in '../shared/MAPSTRUCT.pas',
53 MAPREADER in '../shared/MAPREADER.pas',
54 MAPDEF in '../shared/MAPDEF.pas',
55 CONFIG in '../shared/CONFIG.pas',
56 g_basic in 'g_basic.pas',
57 g_console in 'g_console.pas',
58 g_net in 'g_net.pas',
59 g_netmsg in 'g_netmsg.pas',
60 g_nethandler in 'g_nethandler.pas',
61 g_netmaster in 'g_netmaster.pas',
62 g_res_downloader in 'g_res_downloader.pas',
63 g_game in 'g_game.pas',
64 g_gfx in 'g_gfx.pas',
65 g_gui in 'g_gui.pas',
66 g_items in 'g_items.pas',
67 g_main in 'g_main.pas',
68 g_map in 'g_map.pas',
69 g_menu in 'g_menu.pas',
70 g_monsters in 'g_monsters.pas',
71 g_options in 'g_options.pas',
72 g_phys in 'g_phys.pas',
73 g_player in 'g_player.pas',
74 g_playermodel in 'g_playermodel.pas',
75 g_saveload in 'g_saveload.pas',
76 g_sound in 'g_sound.pas',
77 g_textures in 'g_textures.pas',
78 g_triggers in 'g_triggers.pas',
79 g_weapons in 'g_weapons.pas',
80 g_window in 'g_window.pas',
81 SysUtils,
82 {$IFDEF USE_FMOD}
83 fmod in '../lib/FMOD/fmod.pas',
84 fmoderrors in '../lib/FMOD/fmoderrors.pas',
85 fmodpresets in '../lib/FMOD/fmodpresets.pas',
86 fmodtypes in '../lib/FMOD/fmodtypes.pas',
87 {$ENDIF}
88 BinEditor in '../shared/BinEditor.pas',
89 g_panel in 'g_panel.pas',
90 g_language in 'g_language.pas',
91 ImagingTypes,
92 Imaging,
93 ImagingUtility;
95 {$IFDEF WINDOWS}
96 {$R *.res}
97 {$R CustomRes.res}
98 {$ENDIF}
100 var
101 f: Integer;
102 noct: Boolean = false;
103 begin
104 for f := 1 to ParamCount do if ParamStr(f) = '--gdb' then noct := true;
105 if noct then
106 Main()
107 else
108 try
109 Main();
110 e_WriteLog('Shutdown with no errors.', MSG_NOTIFY);
111 except
112 on E: Exception do
113 e_WriteLog(Format(_lc[I_SYSTEM_ERROR_MSG], [E.Message]), MSG_FATALERROR);
114 else
115 e_WriteLog(Format(_lc[I_SYSTEM_ERROR_UNKNOWN], [LongWord(ExceptAddr())]), MSG_FATALERROR);
116 end;
117 end.