Skip to content

Commit

Permalink
Save CVar after exiting Options screen
Browse files Browse the repository at this point in the history
  • Loading branch information
xoascf authored Mar 27, 2024
1 parent b1e5771 commit 66eeb22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ void FileChoose_UpdateOptionsMenu(GameState* thisx) {
sLastOptionButtonIndex = -1;
osSyncPrintf("SAVE");
Save_SaveGlobal();
CVarSave();
osSyncPrintf(VT_FGCOL(YELLOW));
osSyncPrintf("Na_SetSoundOutputMode = %d\n", gSaveContext.audioSetting);
osSyncPrintf("Na_SetSoundOutputMode = %d\n", gSaveContext.audioSetting);
Expand Down Expand Up @@ -753,7 +754,6 @@ void FileChoose_UpdateOptionsMenu(GameState* thisx) {
// Persist the new language so it is not overridden on the next frame
if (languageChanged) {
CVarSetInteger("gLanguages", gSaveContext.language);
CVarSave();
GameInteractor_ExecuteOnSetGameLanguage();
}

Expand Down

0 comments on commit 66eeb22

Please sign in to comment.