summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2789c62)
raw | patch | inline | side by side (parent: 2789c62)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 23 May 2023 18:21:48 +0000 (21:21 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 23 May 2023 18:21:48 +0000 (21:21 +0300) |
src/editor/f_main.pas | patch | blob | history |
diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas
index 2bf10e67abbf1a555c9616463e212a1e3cda4082..8e7636043b89a072bdfdfa1cd2d85ae889c16f4f 100644 (file)
--- a/src/editor/f_main.pas
+++ b/src/editor/f_main.pas
// Сохраняем временную карту:
time := 0;
repeat
- newWAD := ExtractFilePath(TestD2dExe) + Format('maps/temp%.4d', [time]);
+ newWAD := Format('%s/temp%.4d', [MapsDir, time]);
Inc(time);
until not FileExists(newWAD);
if OpenedMap <> '' then
end;
tempMap := newWAD + ':\' + TEST_MAP_NAME;
SaveMap(tempMap);
- tempMap := ExtractRelativePath(ExtractFilePath(TestD2dExe) + 'maps/', tempMap);
// Опции игры:
opt := 32 + 64;
// Запускаем:
proc := TProcessUTF8.Create(nil);
proc.Executable := TestD2dExe;
+ {$IFDEF DARWIN}
+ // TODO: get real executable name from Info.plist
+ if LowerCase(ExtractFileExt(TestD2dExe)) = '.app' then
+ proc.Executable := TestD2dExe + DirectorySeparator + 'Contents' + DirectorySeparator + 'MacOS' + DirectorySeparator + 'Doom2DF';
+ {$ENDIF}
proc.Parameters.Add('-map');
proc.Parameters.Add(tempMap);
proc.Parameters.Add('-gm');