mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-24 22:32:29 +01:00
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:
parent
202101e4f7
commit
47e7ab6b1f
@ -1 +1 @@
|
|||||||
Subproject commit 0c6cb62fbee9ff278cc9ff61b4b8b39403812945
|
Subproject commit 95e523fa7494c0353b7ecfab408024a9d7b7e161
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user