summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorBaoulettes <perlouzerie@hotmail.fr>2022-05-03 00:24:12 +0200
committerGitHub <noreply@github.com>2022-05-02 18:24:12 -0400
commit18d2bac409d32c59022ac5293eec80682fa13648 (patch)
tree7af6a2dcbd8bf7fdcb5ce92136cdabf1490ce831 /soh/src/code
parente646f80f41c088c1232556b75ffff5e960fc08ed (diff)
Languages selection menu (#232)
* Adding Languages section * Added LanguagesSection * Register the Cvar * Added switcher method * Added Language selection menu + function * function ref. * Conflict fixes to be sure nothing else is modded * space removed * no need to have conditions since ID are the same
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/game.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/soh/src/code/game.c b/soh/src/code/game.c
index b69537fd8..eea895ce1 100644
--- a/soh/src/code/game.c
+++ b/soh/src/code/game.c
@@ -422,7 +422,9 @@ void GameState_Update(GameState* gameState) {
int32_t prevTime = CVar_GetS32("gPrevTime", gSaveContext.dayTime);
gSaveContext.dayTime = prevTime;
}
-
+
+ //since our CVar is same value and properly default to 0 there is not problems doing this in single line.
+ gSaveContext.language = CVar_GetS32("gLanguages", 0);
gameState->frames++;
}