SA: Call the game's own User Files path getter to make device_remembered.set respect Portable GTA's changes

Fixes #105
This commit is contained in:
Silent 2024-11-09 22:42:32 +01:00
parent 202101e4f7
commit 47e7ab6b1f
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 0c6cb62fbee9ff278cc9ff61b4b8b39403812945 Subproject commit 95e523fa7494c0353b7ecfab408024a9d7b7e161

View File

@ -2614,7 +2614,7 @@ namespace NewResolutionSelectionDialog
static bool ShouldSkipDeviceSelection() static bool ShouldSkipDeviceSelection()
{ {
char cTmpPath[MAX_PATH]; char cTmpPath[MAX_PATH];
PathCombineA(cTmpPath, GetMyDocumentsPathSA(), SettingsFileName); PathCombineA(cTmpPath, orgGetDocumentsPath(), SettingsFileName);
bool bSkip = false; bool bSkip = false;
@ -2631,7 +2631,7 @@ namespace NewResolutionSelectionDialog
static void RememberDeviceSelection(bool bDoNotShowAgain) static void RememberDeviceSelection(bool bDoNotShowAgain)
{ {
char cTmpPath[MAX_PATH]; char cTmpPath[MAX_PATH];
PathCombineA(cTmpPath, GetMyDocumentsPathSA(), SettingsFileName); PathCombineA(cTmpPath, orgGetDocumentsPath(), SettingsFileName);
FILE* hFile = nullptr; FILE* hFile = nullptr;
if (fopen_s(&hFile, cTmpPath, "w") == 0) if (fopen_s(&hFile, cTmpPath, "w") == 0)