From 47e7ab6b1f90effc17f7d970e5afe685dc180c86 Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 9 Nov 2024 22:42:32 +0100 Subject: [PATCH] SA: Call the game's own User Files path getter to make device_remembered.set respect Portable GTA's changes Fixes #105 --- SilentPatch/Utils | 2 +- SilentPatchSA/SilentPatchSA.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SilentPatch/Utils b/SilentPatch/Utils index 0c6cb62..95e523f 160000 --- a/SilentPatch/Utils +++ b/SilentPatch/Utils @@ -1 +1 @@ -Subproject commit 0c6cb62fbee9ff278cc9ff61b4b8b39403812945 +Subproject commit 95e523fa7494c0353b7ecfab408024a9d7b7e161 diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 8040e5a..d9857f3 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -2614,7 +2614,7 @@ namespace NewResolutionSelectionDialog static bool ShouldSkipDeviceSelection() { char cTmpPath[MAX_PATH]; - PathCombineA(cTmpPath, GetMyDocumentsPathSA(), SettingsFileName); + PathCombineA(cTmpPath, orgGetDocumentsPath(), SettingsFileName); bool bSkip = false; @@ -2631,7 +2631,7 @@ namespace NewResolutionSelectionDialog static void RememberDeviceSelection(bool bDoNotShowAgain) { char cTmpPath[MAX_PATH]; - PathCombineA(cTmpPath, GetMyDocumentsPathSA(), SettingsFileName); + PathCombineA(cTmpPath, orgGetDocumentsPath(), SettingsFileName); FILE* hFile = nullptr; if (fopen_s(&hFile, cTmpPath, "w") == 0)