aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-19 01:02:12 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-19 01:02:12 +0000
commitdb59da23b2e8f0c347155a91eaf942ca379f98d5 (patch)
tree4cf3d84adf537148fd41f242013e811bdadead96 /Game
parent57a85733c562b5dc5c3e88437613d27f426e1e8b (diff)
downloadusdx-db59da23b2e8f0c347155a91eaf942ca379f98d5.tar.gz
usdx-db59da23b2e8f0c347155a91eaf942ca379f98d5.tar.xz
usdx-db59da23b2e8f0c347155a91eaf942ca379f98d5.zip
fixed bug when compiling with --enable-dev-build
thanks kdub / tobi ... sorry gusy, my bad :( git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@860 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/Classes/UPlatformLinux.pas19
1 files changed, 11 insertions, 8 deletions
diff --git a/Game/Code/Classes/UPlatformLinux.pas b/Game/Code/Classes/UPlatformLinux.pas
index b005c8d9..b3c78a10 100644
--- a/Game/Code/Classes/UPlatformLinux.pas
+++ b/Game/Code/Classes/UPlatformLinux.pas
@@ -136,16 +136,19 @@ end;
function TPlatformLinux.GetLogPath : WideString;
begin
if FindCmdLineSwitch( cUseLocalPaths ) then
- result := ExtractFilePath(ParamStr(0))
- else
-{$IFDEF UseLocalDirs}
+ begin
result := ExtractFilePath(ParamStr(0));
-{$ELSE}
- result := LogPath+'/';
-{$ENDIF}
-
- forcedirectories( result );
+ end
+ else
+ begin
+ {$IFDEF UseLocalDirs}
+ result := ExtractFilePath(ParamStr(0));
+ {$ELSE}
+ result := LogPath+'/';
+ {$ENDIF}
+ end;
+ forcedirectories( result );
end;
function TPlatformLinux.GetGameSharedPath : WideString;