aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/UPlatformWindows.pas
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/UPlatformWindows.pas')
-rw-r--r--src/classes/UPlatformWindows.pas6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/classes/UPlatformWindows.pas b/src/classes/UPlatformWindows.pas
index ee132a7b..029e8d33 100644
--- a/src/classes/UPlatformWindows.pas
+++ b/src/classes/UPlatformWindows.pas
@@ -214,18 +214,18 @@ end;
function TPlatformWindows.GetLogPath: WideString;
begin
- Result := ExtractFilePath(ParamStr(0));
+ Result := GetExecutionDir();
end;
function TPlatformWindows.GetGameSharedPath: WideString;
begin
- Result := ExtractFilePath(ParamStr(0));
+ Result := GetExecutionDir();
end;
function TPlatformWindows.GetGameUserPath: WideString;
begin
//Result := GetSpecialPath(CSIDL_APPDATA) + PathDelim + 'UltraStarDX' + PathDelim;
- Result := ExtractFilePath(ParamStr(0));
+ Result := GetExecutionDir();
end;
function TPlatformWindows.CopyFile(const Source, Target: WideString; FailIfExists: boolean): boolean;