From 83c95e09f137e9984e7240fe629e8c819dfccbf4 Mon Sep 17 00:00:00 2001 From: tobigun Date: Mon, 3 Mar 2008 03:00:18 +0000 Subject: - actual.. -> current.. - USDX version-numbers in UConfig - some windows/lclintf dependencies removed - some indentation git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@898 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UPlatformLinux.pas | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Game/Code/Classes/UPlatformLinux.pas') 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; -- cgit v1.2.3