Move all settings to Windows64/Settings & Ensure the folder exists
This commit is contained in:
@@ -895,7 +895,7 @@ static void Win64_GetSettingsPath(char *outPath, DWORD size)
|
||||
GetModuleFileNameA(nullptr, outPath, size);
|
||||
char *lastSlash = strrchr(outPath, '\\');
|
||||
if (lastSlash) *(lastSlash + 1) = '\0';
|
||||
strncat_s(outPath, size, "settings.dat", _TRUNCATE);
|
||||
strncat_s(outPath, size, "/Windows64/Settings/settings.dat", _TRUNCATE);
|
||||
}
|
||||
static void Win64_SaveSettings(GAME_SETTINGS *gs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user