aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-28 06:54:05 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-28 06:54:05 +0000
commit88f143268a1ad7bd2af9fbb721ca9045f857ca1b (patch)
treed1aa6d397724b8cd4c8c221ec225c086b67ef6fc /src
parent2d3849ea50de9ded535609ee9e9212320eda5aef (diff)
downloadusdx-88f143268a1ad7bd2af9fbb721ca9045f857ca1b.tar.gz
usdx-88f143268a1ad7bd2af9fbb721ca9045f857ca1b.tar.xz
usdx-88f143268a1ad7bd2af9fbb721ca9045f857ca1b.zip
move LogPath to "~/Library/Logs/UltraStar Deluxe" on Mac OS X
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2423 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--src/base/UPlatformMacOSX.pas14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/base/UPlatformMacOSX.pas b/src/base/UPlatformMacOSX.pas
index d55e8bea..6f718bcd 100644
--- a/src/base/UPlatformMacOSX.pas
+++ b/src/base/UPlatformMacOSX.pas
@@ -121,7 +121,7 @@ type
{**
* GetLogPath returns the path for log messages. Currently it is set to
- * $HOME/Library/Application Support/UltraStarDeluxe/log.
+ * $HOME/Library/Logs/UltraStar Deluxe/.
*}
function GetLogPath: IPath; override;
@@ -251,21 +251,19 @@ begin
Result := GetExecutionDir().GetParent().GetParent();
end;
-function TPlatformMacOSX.GetApplicationSupportPath: IPath;
-const
- PathName: string = 'Library/Application Support/UltraStarDeluxe';
+function TPlatformMacOSX.GetHomeDir(): IPath;
begin
- Result := GetHomeDir().Append(PathName, pdAppend);
+ Result := Path(GetEnvironmentVariable('HOME'));
end;
-function TPlatformMacOSX.GetHomeDir(): IPath;
+function TPlatformMacOSX.GetApplicationSupportPath: IPath;
begin
- Result := Path(GetEnvironmentVariable('HOME'));
+ Result := GetHomeDir().Append('Library/Application Support/UltraStarDeluxe', pdAppend);
end;
function TPlatformMacOSX.GetLogPath: IPath;
begin
- Result := GetApplicationSupportPath.Append('logs');
+ Result := GetHomeDir().Append('Library/Logs/UltraStar Deluxe', pdAppend);
end;
function TPlatformMacOSX.GetGameSharedPath: IPath;