X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2FEditor.lpr;h=ccbcb60f5a95cd469fd060445b2d7c62a2f202f0;hb=c31a0cde6506576625aab584c2c45aac9168f2dd;hp=647bfae8129308cbab1781174315cc8acacfec16;hpb=c3be56f2a3849cd22be39ce594498c7990e05606;p=d2df-editor.git diff --git a/src/editor/Editor.lpr b/src/editor/Editor.lpr index 647bfae..ccbcb60 100644 --- a/src/editor/Editor.lpr +++ b/src/editor/Editor.lpr @@ -1,6 +1,6 @@ program Editor; -{$MODE Delphi} +{$INCLUDE ../shared/a_modes.inc} uses Forms, Interfaces, @@ -15,6 +15,12 @@ uses WADEDITOR in '../shared/WADEDITOR.pas', WADSTRUCT in '../shared/WADSTRUCT.pas', CONFIG in '../shared/CONFIG.pas', + xstreams in '../shared/xstreams.pas', + dfzip in '../shared/dfzip.pas', + sfs in '../sfs/sfs.pas', + sfsPlainFS in '../sfs/sfsPlainFS.pas', + sfsZipFS in '../sfs/sfsZipFS.pas', + f_about in 'f_about.pas' {AboutForm}, f_options in 'f_options.pas' {OptionsForm}, f_main in 'f_main.pas' {MainForm}, @@ -37,20 +43,26 @@ uses f_packmap in 'f_packmap.pas' {PackMapForm}, f_maptest in 'f_maptest.pas' {MapTestForm}, f_choosetype in 'f_choosetype.pas' {ChooseTypeForm}, +{$IFNDEF NOSOUND} fmod, fmoderrors, fmodpresets, fmodtypes, +{$ENDIF} ImagingTypes, Imaging, ImagingUtility, g_language in 'g_language.pas', f_selectlang in 'f_selectlang.pas' {SelectLanguageForm}; -{$R *.res} +{$IFDEF WINDOWS} + {$R *.res} +{$ENDIF} begin - Application.Initialize; + Application.ExceptionDialog := aedOkMessageBox; + Application.Initialize(); + Application.CreateForm(TMainForm, MainForm); Application.CreateForm(TOptionsForm, OptionsForm); Application.CreateForm(TAboutForm, AboutForm); @@ -70,7 +82,7 @@ begin Application.CreateForm(TMapTestForm, MapTestForm); Application.CreateForm(TChooseTypeForm, ChooseTypeForm); Application.CreateForm(TSelectLanguageForm, SelectLanguageForm); - if ParamStr(1) <> '' then OpenMap(ParamStr(1), ''); - Application.Run; + if ParamStr(1) <> '' then OpenMap(ParamStr(1), ''); + Application.Run(); end.