-
Notifications
You must be signed in to change notification settings - Fork 5
/
RADGL.dpr
415 lines (404 loc) · 15.4 KB
/
RADGL.dpr
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
//
// RAD: Recreation of the game "Radix - beyond the void"
// powered by the DelphiDoom engine
//
// Copyright (C) 1995 by Epic MegaGames, Inc.
// Copyright (C) 1993-1996 by id Software, Inc.
// Copyright (C) 2004-2022 by Jim Valavanis
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
//------------------------------------------------------------------------------
// Site: https://sourceforge.net/projects/rad-x/
//------------------------------------------------------------------------------
{$IFDEF FPC}
{$Error: Use you must use Delphi to compile this project. Use Doom32f.dpr with FPC}
{$ENDIF}
{$IFNDEF OPENGL}
{$Error: This project uses opengl renderer, please define "OPENGL"}
{$ENDIF}
{$IFNDEF DOOM}
{$Error: To compile this project you must define "DOOM"}
{$ENDIF}
{$I RAD.inc}
{$D Doom to Delphi Total Conversion}
program RadGL;
{$R *.RES}
uses
FastMM4 in 'FASTMM4\FastMM4.pas',
FastMM4Messages in 'FASTMM4\FastMM4Messages.pas',
FastCode in 'FASTCODE\FastCode.pas',
FastMove in 'FASTCODE\FastMove.pas',
AnsiStringReplaceJOHIA32Unit12 in 'FASTCODE\AnsiStringReplaceJOHIA32Unit12.pas',
AnsiStringReplaceJOHPASUnit12 in 'FASTCODE\AnsiStringReplaceJOHPASUnit12.pas',
FastcodeAnsiStringReplaceUnit in 'FASTCODE\FastcodeAnsiStringReplaceUnit.pas',
FastcodeCompareMemUnit in 'FASTCODE\FastcodeCompareMemUnit.pas',
FastcodeCompareStrUnit in 'FASTCODE\FastcodeCompareStrUnit.pas',
FastcodeCompareTextUnit in 'FASTCODE\FastcodeCompareTextUnit.pas',
FastcodeCPUID in 'FASTCODE\FastcodeCPUID.pas',
FastcodeFillCharUnit in 'FASTCODE\FastcodeFillCharUnit.pas',
FastcodeLowerCaseUnit in 'FASTCODE\FastcodeLowerCaseUnit.pas',
FastcodePatch in 'FASTCODE\FastcodePatch.pas',
FastcodePosExUnit in 'FASTCODE\FastcodePosExUnit.pas',
FastcodePosUnit in 'FASTCODE\FastcodePosUnit.pas',
FastcodeStrCompUnit in 'FASTCODE\FastcodeStrCompUnit.pas',
FastcodeStrCopyUnit in 'FASTCODE\FastcodeStrCopyUnit.pas',
FastcodeStrICompUnit in 'FASTCODE\FastcodeStrICompUnit.pas',
FastCodeStrLenUnit in 'FASTCODE\FastCodeStrLenUnit.pas',
FastcodeStrToInt32Unit in 'FASTCODE\FastcodeStrToInt32Unit.pas',
FastcodeUpperCaseUnit in 'FASTCODE\FastcodeUpperCaseUnit.pas',
gl_clipper in 'OPENGL\gl_clipper.pas',
gl_tex in 'OPENGL\gl_tex.pas',
gl_defs in 'OPENGL\gl_defs.pas',
gl_main in 'OPENGL\gl_main.pas',
gl_misc in 'OPENGL\gl_misc.pas',
gl_render in 'OPENGL\gl_render.pas',
gl_sky in 'OPENGL\gl_sky.pas',
gl_lights in 'OPENGL\gl_lights.pas',
jpg_utils in 'JPEGLIB\jpg_utils.pas',
jpg_comapi in 'JPEGLIB\jpg_comapi.pas',
jpg_dapimin in 'JPEGLIB\jpg_dapimin.pas',
jpg_dapistd in 'JPEGLIB\jpg_dapistd.pas',
jpg_dcoefct in 'JPEGLIB\jpg_dcoefct.pas',
jpg_dcolor in 'JPEGLIB\jpg_dcolor.pas',
jpg_dct in 'JPEGLIB\jpg_dct.pas',
jpg_ddctmgr in 'JPEGLIB\jpg_ddctmgr.pas',
jpg_deferr in 'JPEGLIB\jpg_deferr.pas',
jpg_dhuff in 'JPEGLIB\jpg_dhuff.pas',
jpg_dinput in 'JPEGLIB\jpg_dinput.pas',
jpg_dmainct in 'JPEGLIB\jpg_dmainct.pas',
jpg_dmarker in 'JPEGLIB\jpg_dmarker.pas',
jpg_dmaster in 'JPEGLIB\jpg_dmaster.pas',
jpg_dmerge in 'JPEGLIB\jpg_dmerge.pas',
jpg_dphuff in 'JPEGLIB\jpg_dphuff.pas',
jpg_dpostct in 'JPEGLIB\jpg_dpostct.pas',
jpg_dsample in 'JPEGLIB\jpg_dsample.pas',
jpg_error in 'JPEGLIB\jpg_error.pas',
jpg_idctasm in 'JPEGLIB\jpg_idctasm.pas',
jpg_idctflt in 'JPEGLIB\jpg_idctflt.pas',
jpg_idctfst in 'JPEGLIB\jpg_idctfst.pas',
jpg_IDctRed in 'JPEGLIB\jpg_IDctRed.pas',
jpg_lib in 'JPEGLIB\jpg_lib.pas',
jpg_memmgr in 'JPEGLIB\jpg_memmgr.pas',
jpg_memnobs in 'JPEGLIB\jpg_memnobs.pas',
jpg_morecfg in 'JPEGLIB\jpg_morecfg.pas',
jpg_quant1 in 'JPEGLIB\jpg_quant1.pas',
jpg_quant2 in 'JPEGLIB\jpg_quant2.pas',
mp3_SynthFilter in 'MP3LIB\mp3_SynthFilter.pas',
mp3_Args in 'MP3LIB\mp3_Args.pas',
mp3_BitReserve in 'MP3LIB\mp3_BitReserve.pas',
mp3_BitStream in 'MP3LIB\mp3_BitStream.pas',
mp3_CRC in 'MP3LIB\mp3_CRC.pas',
mp3_Header in 'MP3LIB\mp3_Header.pas',
mp3_Huffman in 'MP3LIB\mp3_Huffman.pas',
mp3_InvMDT in 'MP3LIB\mp3_InvMDT.pas',
mp3_L3Tables in 'MP3LIB\mp3_L3Tables.pas',
mp3_L3Type in 'MP3LIB\mp3_L3Type.pas',
mp3_Layer3 in 'MP3LIB\mp3_Layer3.pas',
mp3_MPEGPlayer in 'MP3LIB\mp3_MPEGPlayer.pas',
mp3_OBuffer in 'MP3LIB\mp3_OBuffer.pas',
mp3_OBuffer_MCI in 'MP3LIB\mp3_OBuffer_MCI.pas',
mp3_OBuffer_Wave in 'MP3LIB\mp3_OBuffer_Wave.pas',
mp3_Player in 'MP3LIB\mp3_Player.pas',
mp3_ScaleFac in 'MP3LIB\mp3_ScaleFac.pas',
mp3_Shared in 'MP3LIB\mp3_Shared.pas',
mp3_SubBand1 in 'MP3LIB\mp3_SubBand1.pas',
mp3_SubBand2 in 'MP3LIB\mp3_SubBand2.pas',
mp3_SubBand in 'MP3LIB\mp3_SubBand.pas',
t_bmp in 'TEXLIB\t_bmp.pas',
t_colors in 'TEXLIB\t_colors.pas',
t_draw in 'TEXLIB\t_draw.pas',
t_jpeg in 'TEXLIB\t_jpeg.pas',
t_main in 'TEXLIB\t_main.pas',
t_png in 'TEXLIB\t_png.pas',
t_tga in 'TEXLIB\t_tga.pas',
z_files in 'ZLIB\z_files.pas',
am_map in 'Radix\am_map.pas',
c_cmds in 'Base\c_cmds.pas',
c_con in 'Base\c_con.pas',
c_utils in 'Base\c_utils.pas',
d_delphi in 'Common\d_delphi.pas',
d_englsh in 'Radix\d_englsh.pas',
d_event in 'Base\d_event.pas',
d_fpc in 'Base\d_fpc.pas',
d_items in 'Radix\d_items.pas',
d_main in 'Radix\d_main.pas',
d_net in 'Base\d_net.pas',
d_net_h in 'Base\d_net_h.pas',
d_player in 'Radix\d_player.pas',
d_think in 'Base\d_think.pas',
d_ticcmd in 'Base\d_ticcmd.pas',
deh_main in 'Radix\deh_main.pas',
DirectX in 'Common\DirectX.pas',
doomdata in 'Radix\doomdata.pas',
doomdef in 'Radix\doomdef.pas',
doomstat in 'Radix\doomstat.pas',
doomtype in 'Base\doomtype.pas',
dstrings in 'Radix\dstrings.pas',
f_finale in 'Radix\f_finale.pas',
g_game in 'Radix\g_game.pas',
hu_lib in 'Base\hu_lib.pas',
hu_stuff in 'Radix\hu_stuff.pas',
i_input in 'Base\i_input.pas',
i_io in 'Base\i_io.pas',
i_midi in 'Base\i_midi.pas',
i_mp3 in 'Base\i_mp3.pas',
i_music in 'Base\i_music.pas',
i_net in 'Base\i_net.pas',
i_sound in 'Base\i_sound.pas',
i_system in 'Base\i_system.pas',
info in 'Radix\info.pas',
info_h in 'Radix\info_h.pas',
info_rnd in 'Radix\info_rnd.pas',
m_argv in 'Base\m_argv.pas',
m_base in 'Base\m_base.pas',
m_bbox in 'Base\m_bbox.pas',
m_cheat in 'Base\m_cheat.pas',
m_defs in 'Radix\m_defs.pas',
m_fixed in 'Base\m_fixed.pas',
m_menu in 'Radix\m_menu.pas',
m_misc in 'Base\m_misc.pas',
m_rnd in 'Base\m_rnd.pas',
m_stack in 'Base\m_stack.pas',
m_vectors in 'Base\m_vectors.pas',
p_ceilng in 'Radix\p_ceilng.pas',
p_doors in 'Radix\p_doors.pas',
p_enemy in 'Radix\p_enemy.pas',
p_extra in 'Radix\p_extra.pas',
p_floor in 'Radix\p_floor.pas',
p_inter in 'Radix\p_inter.pas',
p_lights in 'Radix\p_lights.pas',
p_local in 'Radix\p_local.pas',
p_map in 'Radix\p_map.pas',
p_maputl in 'Radix\p_maputl.pas',
p_mobj in 'Radix\p_mobj.pas',
p_mobj_h in 'Radix\p_mobj_h.pas',
p_plats in 'Radix\p_plats.pas',
p_pspr in 'Radix\p_pspr.pas',
p_pspr_h in 'Radix\p_pspr_h.pas',
p_saveg in 'Radix\p_saveg.pas',
p_setup in 'Radix\p_setup.pas',
p_sight in 'Radix\p_sight.pas',
p_sounds in 'Radix\p_sounds.pas',
p_spec in 'Radix\p_spec.pas',
p_switch in 'Radix\p_switch.pas',
p_telept in 'Radix\p_telept.pas',
p_terrain in 'Radix\p_terrain.pas',
p_tick in 'Radix\p_tick.pas',
p_user in 'Radix\p_user.pas',
r_bsp in 'Radix\r_bsp.pas',
r_data in 'Radix\r_data.pas',
r_defs in 'Radix\r_defs.pas',
r_draw in 'Radix\r_draw.pas',
r_hires in 'Base\r_hires.pas',
r_intrpl in 'Base\r_intrpl.pas',
r_lights in 'Base\r_lights.pas',
r_main in 'Radix\r_main.pas',
r_mmx in 'Base\r_mmx.pas',
r_plane in 'Radix\r_plane.pas',
r_sky in 'Radix\r_sky.pas',
r_things in 'Base\r_things.pas',
rtl_types in 'Base\rtl_types.pas',
s_sound in 'Radix\s_sound.pas',
sc_actordef in 'Base\sc_actordef.pas',
sc_engine in 'Base\sc_engine.pas',
sc_params in 'Base\sc_params.pas',
sounds in 'Radix\sounds.pas',
st_lib in 'Radix\st_lib.pas',
st_stuff in 'Radix\st_stuff.pas',
tables in 'Base\tables.pas',
v_data in 'Radix\v_data.pas',
v_video in 'Base\v_video.pas',
w_pak in 'Base\w_pak.pas',
w_utils in 'Base\w_utils.pas',
w_wad in 'Base\w_wad.pas',
z_zone in 'Base\z_zone.pas',
dglOpenGL in 'OPENGL\dglOpenGL.pas',
p_genlin in 'Radix\p_genlin.pas',
p_scroll in 'Radix\p_scroll.pas',
r_dynlights in 'Base\r_dynlights.pas',
sc_tokens in 'Base\sc_tokens.pas',
i_exec in 'Base\i_exec.pas',
i_tmp in 'Base\i_tmp.pas',
gl_frustum in 'OPENGL\gl_frustum.pas',
i_startup in 'Base\i_startup.pas' {StartUpConsoleForm},
gl_models in 'OPENGL\gl_models.pas',
gl_types in 'OPENGL\gl_types.pas',
sc_states in 'Base\sc_states.pas',
gl_lightmaps in 'OPENGL\gl_lightmaps.pas',
t_material in 'TEXLIB\t_material.pas',
gl_shadows in 'OPENGL\gl_shadows.pas',
gl_shaders in 'OPENGL\gl_shaders.pas',
p_adjust in 'Base\p_adjust.pas',
w_autoload in 'Base\w_autoload.pas',
p_common in 'Base\p_common.pas',
r_aspect in 'Base\r_aspect.pas',
i_threads in 'Base\i_threads.pas',
r_colormaps in 'Base\r_colormaps.pas',
r_diher in 'Radix\r_diher.pas',
z_memmgr in 'Base\z_memmgr.pas',
gl_voxels in 'OPENGL\gl_voxels.pas',
vx_base in 'Base\vx_base.pas',
info_fnd in 'Base\info_fnd.pas',
m_crc32 in 'Base\m_crc32.pas',
mt_utils in 'Base\mt_utils.pas',
p_params in 'Base\p_params.pas',
nd_main in 'Base\nd_main.pas',
am_textured in 'Base\am_textured.pas',
p_udmf in 'Base\p_udmf.pas',
m_sshot_jpg in 'Base\m_sshot_jpg.pas',
ps_import in 'SCRIPT\ps_import.pas',
ps_main in 'SCRIPT\ps_main.pas',
uPSC_dateutils in 'SCRIPT\uPSC_dateutils.pas',
uPSC_dll in 'SCRIPT\uPSC_dll.pas',
ps_compiler in 'SCRIPT\ps_compiler.pas',
uPSR_dateutils in 'SCRIPT\uPSR_dateutils.pas',
uPSR_dll in 'SCRIPT\uPSR_dll.pas',
ps_runtime in 'SCRIPT\ps_runtime.pas',
ps_utils in 'SCRIPT\ps_utils.pas',
info_common in 'Base\info_common.pas',
sc_thinker in 'Base\sc_thinker.pas',
p_ladder in 'Base\p_ladder.pas',
m_hash in 'Base\m_hash.pas',
p_3dfloors in 'Base\p_3dfloors.pas',
r_visplanes in 'Base\r_visplanes.pas',
p_slopes in 'Base\p_slopes.pas',
gl_slopes in 'OPENGL\gl_slopes.pas',
r_camera in 'Base\r_camera.pas',
ps_proclist in 'SCRIPT\ps_proclist.pas',
uPSPreProcessor in 'SCRIPT\uPSPreProcessor.pas',
psi_system in 'SCRIPT\psi_system.pas',
psi_globals in 'SCRIPT\psi_globals.pas',
ddc_base in 'SCRIPT\ddc_base.pas',
p_mobjlist in 'Base\p_mobjlist.pas',
m_smartpointerlist in 'Base\m_smartpointerlist.pas',
psi_game in 'SCRIPT\psi_game.pas',
ps_events in 'SCRIPT\ps_events.pas',
ps_serializer in 'SCRIPT\ps_serializer.pas',
psi_overlay in 'SCRIPT\psi_overlay.pas',
r_earthquake in 'Base\r_earthquake.pas',
p_affectees in 'Base\p_affectees.pas',
t_pcx in 'TEXLIB\t_pcx.pas',
t_pcx4 in 'TEXLIB\t_pcx4.pas',
ps_dll in 'SCRIPT\ps_dll.pas',
mdl_base in 'OPENGL\mdl_base.pas',
mdl_md2 in 'OPENGL\mdl_md2.pas',
ps_keywords in 'SCRIPT\ps_keywords.pas',
ps_defs in 'SCRIPT\ps_defs.pas',
mdl_ddmodel in 'OPENGL\mdl_ddmodel.pas',
mdl_script in 'OPENGL\mdl_script.pas',
mdl_script_functions in 'OPENGL\mdl_script_functions.pas',
mdl_script_model in 'OPENGL\mdl_script_model.pas',
mdl_script_proclist in 'OPENGL\mdl_script_proclist.pas',
p_gravity in 'Base\p_gravity.pas',
gl_ambient in 'OPENGL\gl_ambient.pas',
t_patch in 'TEXLIB\t_patch.pas',
r_precalc in 'Base\r_precalc.pas',
p_bridge in 'Base\p_bridge.pas',
w_sprite in 'Base\w_sprite.pas',
mdl_dllmodel in 'OPENGL\mdl_dllmodel.pas',
i_steam in 'Base\i_steam.pas',
i_displaymodes in 'Base\i_displaymodes.pas',
d_notifications in 'Base\d_notifications.pas',
gl_automap in 'OPENGL\gl_automap.pas',
sc_utils in 'Base\sc_utils.pas',
w_folders in 'Base\w_folders.pas',
r_subsectors in 'Base\r_subsectors.pas',
e_endoom in 'Base\e_endoom.pas',
radix_wipe in 'Radix\radix_wipe.pas',
r_renderstyle in 'Base\r_renderstyle.pas',
vx_voxelsprite in 'Base\vx_voxelsprite.pas',
w_wadwriter in 'Base\w_wadwriter.pas',
m_sha1 in 'Base\m_sha1.pas',
sc_evaluate_actor in 'Base\sc_evaluate_actor.pas',
sc_evaluate in 'Base\sc_evaluate.pas',
p_musinfo in 'Base\p_musinfo.pas',
p_levelinfo in 'Base\p_levelinfo.pas',
deh_base in 'Base\deh_base.pas',
radix_xlat_wad in 'Radix\radix_xlat_wad.pas',
radix_font in 'Radix\radix_font.pas',
radix_patch in 'Radix\radix_patch.pas',
radix_palette in 'Radix\radix_palette.pas',
radix_level in 'Radix\radix_level.pas',
radix_things in 'Radix\radix_things.pas',
radix_logic in 'Radix\radix_logic.pas',
radix_end_screen in 'Radix\radix_end_screen.pas',
radix_defs in 'Radix\radix_defs.pas',
radix_bitmap in 'Radix\radix_bitmap.pas',
i_modmusic in 'Base\i_modmusic.pas',
radix_map_extra in 'Radix\radix_map_extra.pas',
radix_version in 'Radix\radix_version.pas',
radix_actions in 'Radix\radix_actions.pas',
radix_alias in 'Radix\radix_alias.pas',
radix_grid in 'Radix\radix_grid.pas',
radix_messages in 'Radix\radix_messages.pas',
sound_data in 'Radix\sound_data.pas',
radix_sounds in 'Radix\radix_sounds.pas',
radix_doom_wad in 'Radix\radix_doom_wad.pas',
t_radix32 in 'TEXLIB\t_radix32.pas',
m_compress in 'Base\m_compress.pas',
mn_screenshot in 'Radix\mn_screenshot.pas',
radix_weapons in 'Radix\radix_weapons.pas',
g_gameplay in 'Radix\g_gameplay.pas',
radix_hud in 'Radix\radix_hud.pas',
mn_font in 'Radix\mn_font.pas',
psi_radix in 'SCRIPT\psi_radix.pas',
radix_player in 'Radix\radix_player.pas',
radix_objects in 'Radix\radix_objects.pas',
radix_forcefield in 'Radix\radix_forcefield.pas',
radix_teleport in 'Radix\radix_teleport.pas',
p_animdefs in 'Base\p_animdefs.pas',
radix_intermission in 'Radix\radix_intermission.pas',
radix_score in 'Radix\radix_score.pas',
radix_extra_sprites in 'Radix\radix_extra_sprites.pas',
p_easyslope in 'Base\p_easyslope.pas',
radix_vertical_fight in 'Radix\radix_vertical_fight.pas',
w_wadreader in 'Base\w_wadreader.pas',
p_easyangle in 'Base\p_easyangle.pas',
libflac in 'AUDIOLIB\libflac.pas',
libogg in 'AUDIOLIB\libogg.pas',
libsndfile in 'AUDIOLIB\libsndfile.pas',
libvorbis in 'AUDIOLIB\libvorbis.pas',
c_lib in 'C_LIB\c_lib.pas',
scanf in 'C_LIB\scanf.pas',
scanf_c in 'C_LIB\scanf_c.pas',
audiolib in 'AUDIOLIB\audiolib.pas',
libs3m in 'AUDIOLIB\libs3m.pas',
mikmod in 'Base\mikmod.pas',
i_mikplay in 'Base\i_mikplay.pas',
BTMemoryModule in 'Base\BTMemoryModule.pas',
i_s3mmusic in 'Base\i_s3mmusic.pas',
i_mainwindow in 'Base\i_mainwindow.pas',
i_itmusic in 'Base\i_itmusic.pas',
i_xmmusic in 'Base\i_xmmusic.pas',
s_externalmusic in 'Base\s_externalmusic.pas',
radix_briefing in 'Radix\radix_briefing.pas',
s_pk3sounds in 'Base\s_pk3sounds.pas',
r_ripple in 'Base\r_ripple.pas';
var
Saved8087CW: Word;
begin
{ Save the current FPU state and then disable FPU exceptions }
Saved8087CW := Default8087CW;
Set8087CW($133f); { Disable all fpu exceptions }
try
DoomMain;
except
I_FlashCachedOutput;
end;
{ Reset the FPU to the previous state }
Set8087CW(Saved8087CW);
end.