X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2FEditor.lpr;h=21d8fe5df9a97c8f5cf532dac8b453175148170d;hb=7bc7d5022ae82e37fee8b3003432f9294176a470;hp=71f5906bf6784736fa889e0cb245e44726b9d4a2;hpb=3dc2fe6b3d29cd54425db8f590e922f2dce50e99;p=d2df-editor.git diff --git a/src/editor/Editor.lpr b/src/editor/Editor.lpr index 71f5906..21d8fe5 100644 --- a/src/editor/Editor.lpr +++ b/src/editor/Editor.lpr @@ -15,6 +15,11 @@ uses WADEDITOR in '../shared/WADEDITOR.pas', WADSTRUCT in '../shared/WADSTRUCT.pas', CONFIG in '../shared/CONFIG.pas', + xstreams in '../shared/xstreams.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}, @@ -49,10 +54,14 @@ uses 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); @@ -72,7 +81,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.