X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2FEditor.lpr;h=f1a9c3055c2b81e17809a831312df8aba3ba392e;hb=a5105ea646c6744f8532a09cb4c37afe5554bcd5;hp=647bfae8129308cbab1781174315cc8acacfec16;hpb=c3be56f2a3849cd22be39ce594498c7990e05606;p=d2df-editor.git diff --git a/src/editor/Editor.lpr b/src/editor/Editor.lpr index 647bfae..f1a9c30 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, @@ -37,10 +37,12 @@ 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, @@ -50,7 +52,8 @@ uses {$R *.res} begin - Application.Initialize; + Application.Initialize(); + Application.CreateForm(TMainForm, MainForm); Application.CreateForm(TOptionsForm, OptionsForm); Application.CreateForm(TAboutForm, AboutForm); @@ -70,7 +73,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.