aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-06 09:59:51 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-06 09:59:51 +0000
commite0f79449eedac343fbac90b72b7a6792e8e940e9 (patch)
tree9a6b4a1d9e92c355593272f454db71a19f6fbdb4 /Game/Code/Classes
parent6fb575e34735f50f68f31cff7159b2bbd6019f40 (diff)
downloadusdx-e0f79449eedac343fbac90b72b7a6792e8e940e9.tar.gz
usdx-e0f79449eedac343fbac90b72b7a6792e8e940e9.tar.xz
usdx-e0f79449eedac343fbac90b72b7a6792e8e940e9.zip
fixed the configure stuff though it needs some further adjustments
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@835 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UPlatformLinux.pas21
1 files changed, 17 insertions, 4 deletions
diff --git a/Game/Code/Classes/UPlatformLinux.pas b/Game/Code/Classes/UPlatformLinux.pas
index b962d8a5..fe4bbf11 100644
--- a/Game/Code/Classes/UPlatformLinux.pas
+++ b/Game/Code/Classes/UPlatformLinux.pas
@@ -43,7 +43,8 @@ uses
{$ELSE}
oldlinux,
{$ENDIF}
- SysUtils;
+ SysUtils,
+ UConfig;
{$IFDEF FPC_VERSION_2_2_0_PLUS}
Function TPlatformLinux.DirectoryFindFiles(Dir, Filter : WideString; ReturnAllSubDirs : Boolean) : TDirectoryEntryArray;
@@ -137,7 +138,11 @@ begin
if FindCmdLineSwitch( cUseLocalPaths ) then
result := ExtractFilePath(ParamStr(0))
else
- result := '/var/log/UltraStarDeluxe/';
+{$IFDEF UseLocalDirs}
+ result := ExtractFilePath(ParamStr(0))
+{$ELSE}
+ result := LogPath+'/';
+{$ENDIF}
end;
function TPlatformLinux.GetGameSharedPath : WideString;
@@ -145,7 +150,11 @@ begin
if FindCmdLineSwitch( cUseLocalPaths ) then
result := ExtractFilePath(ParamStr(0))
else
- result := '/usr/share/UltraStarDeluxe/';
+{$IFDEF UseLocalDirs}
+ result := ExtractFilePath(ParamStr(0))
+{$ELSE}
+ result := SharedPath+'/';
+{$ENDIF}
end;
function TPlatformLinux.GetGameUserPath : WideString;
@@ -153,7 +162,11 @@ begin
if FindCmdLineSwitch( cUseLocalPaths ) then
result := ExtractFilePath(ParamStr(0))
else
- result := get_homedir()+'/.UltraStarDeluxe/';
+{$IFDEF UseLocalDirs}
+ result := ExtractFilePath(ParamStr(0))
+{$ELSE}
+ result := get_homedir()+'/.'+PathSuffix+'/';
+{$ENDIF}
end;
function TPlatformLinux.get_homedir(): string;