diff options
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/UPlatformLinux.pas | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Game/Code/Classes/UPlatformLinux.pas b/Game/Code/Classes/UPlatformLinux.pas index 71a75a6b..ff4834fe 100644 --- a/Game/Code/Classes/UPlatformLinux.pas +++ b/Game/Code/Classes/UPlatformLinux.pas @@ -161,11 +161,13 @@ begin if FindCmdLineSwitch( cUseLocalPaths ) then result := ExtractFilePath(ParamStr(0)) else + begin {$IFDEF UseLocalDirs} result := ExtractFilePath(ParamStr(0)); {$ELSE} result := SharedPath+'/'; {$ENDIF} + end; end; function TPlatformLinux.GetGameUserPath : WideString; @@ -173,11 +175,13 @@ begin if FindCmdLineSwitch( cUseLocalPaths ) then result := ExtractFilePath(ParamStr(0)) else + begin {$IFDEF UseLocalDirs} result := ExtractFilePath(ParamStr(0)); {$ELSE} result := get_homedir()+'/.'+PathSuffix+'/'; {$ENDIF} + end; end; function TPlatformLinux.get_homedir(): string; |