aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UPlatformLinux.pas
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code/Classes/UPlatformLinux.pas')
-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;