mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-11 01:10:33 +00:00
Document SaveContext.gameMode
(#1295)
* Document `SaveContext.gameMode` * end credits * Remove no longer needed comment
This commit is contained in:
parent
e16779cc33
commit
984871eb38
17 changed files with 41 additions and 31 deletions
|
@ -1445,7 +1445,7 @@ void FileSelect_LoadGame(GameState* thisx) {
|
|||
&gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
|
||||
gSaveContext.fileNum = this->buttonIndex;
|
||||
Sram_OpenSave(&this->sramCtx);
|
||||
gSaveContext.gameMode = 0;
|
||||
gSaveContext.gameMode = GAMEMODE_NORMAL;
|
||||
SET_NEXT_GAMESTATE(&this->state, MapSelect_Init, MapSelectState);
|
||||
this->state.running = false;
|
||||
} else {
|
||||
|
@ -1453,7 +1453,7 @@ void FileSelect_LoadGame(GameState* thisx) {
|
|||
&gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
|
||||
gSaveContext.fileNum = this->buttonIndex;
|
||||
Sram_OpenSave(&this->sramCtx);
|
||||
gSaveContext.gameMode = 0;
|
||||
gSaveContext.gameMode = GAMEMODE_NORMAL;
|
||||
SET_NEXT_GAMESTATE(&this->state, Play_Init, PlayState);
|
||||
this->state.running = false;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "global.h"
|
||||
|
||||
void TitleSetup_SetupTitleScreen(TitleSetupState* this) {
|
||||
gSaveContext.gameMode = 1;
|
||||
gSaveContext.gameMode = GAMEMODE_TITLE_SCREEN;
|
||||
this->state.running = false;
|
||||
gSaveContext.linkAge = LINK_AGE_ADULT;
|
||||
Sram_InitDebugSave();
|
||||
|
|
|
@ -139,7 +139,7 @@ void ConsoleLogo_Main(GameState* thisx) {
|
|||
if (this->exit) {
|
||||
gSaveContext.seqId = (u8)NA_BGM_DISABLED;
|
||||
gSaveContext.natureAmbienceId = 0xFF;
|
||||
gSaveContext.gameMode = 1;
|
||||
gSaveContext.gameMode = GAMEMODE_TITLE_SCREEN;
|
||||
this->state.running = false;
|
||||
SET_NEXT_GAMESTATE(&this->state, TitleSetup_Init, TitleSetupState);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue