Subversion Repositories spacemission

Compare Revisions

Regard whitespace Rev HEAD → Rev 1

/LevEdit.dpr
1,26 → 1,29
program LevEdit;
 
{$Description 'SpaceMission Leveleditor 1.1'}
 
{%ToDo 'LevEdit.todo'}
 
uses
Windows,
{$IF CompilerVersion >= 23.0}
System.UITypes,
{$IFEND }
Forms,
Dialogs,
SysUtils,
MMSystem,
LevMain in 'LevMain.pas' {MainForm},
LevText in 'LevText.pas' {TextForm},
LevSplash in 'LevSplash.pas' {SplashForm},
LevSpeicherung in 'LevSpeicherung.pas' {SpeicherungForm},
ComInfo in 'ComInfo.pas' {InfoForm},
LevOptions in 'LevOptions.pas' {LevelForm},
ComLevelReader in 'ComLevelReader.pas',
Global in 'Global.pas';
LevInfo in 'LevInfo.pas' {InfoForm},
LevSource in 'LevSource.pas' {SourceForm},
LevOptions in 'LevOptions.pas' {LevelForm};
 
{$R *.RES}
 
var
Fehler: boolean;
Sem: THandle;
directory: string;
 
begin
{ Programm schon gestartet? }
35,17 → 38,26
SplashForm.Show;
SplashForm.Update;
Application.Initialize;
Application.ShowMainform := False;
Application.MainFormOnTaskBar := true;
Application.Title := 'SpaceMission Leveleditor';
if not fileexists(OwnDirectory+'DirectX\Graphics.dxg') then
Application.showmainform := False;
Application.Title := 'SpaceMission 1.1 - Leveleditor';
Fehler := false;
directory := extractfilepath(paramstr(0));
// if not fileexists(directory+'Bilder\Auswahl.bmp') then Fehler := true;
if not fileexists(directory+'DirectX\Graphic.dxg') then Fehler := true;
// if not fileexists(directory+'Texte\Mitwirkende.txt') then Fehler := true;
// if not fileexists(directory+'Dateien.doc') then Fehler := true;
if Fehler then
begin
MessageDLG('DirectX\Graphics.dxg fehlt. Bitte installieren Sie SpaceMission erneut.', mtError, [mbOK], 0);
MessageDLG('Dateien, die die Programmstabilität gewährleisten, sind ' +
'nicht mehr vorhanden!'+#13#10+'Bitte installieren Sie SpaceMission erneut...',
mtWarning, [mbOK], 0);
exit;
end;
Application.CreateForm(TMainForm, MainForm);
Application.CreateForm(TTextForm, TextForm);
Application.CreateForm(TSpeicherungForm, SpeicherungForm);
Application.CreateForm(TInfoForm, InfoForm);
Application.CreateForm(TSourceForm, SourceForm);
Application.CreateForm(TLevelForm, LevelForm);
Application.Run;
end.