#include "global.h" // For retail BSS ordering, the block number of D_8015FA88 must be 0 or // just above (the exact upper bound depends on the block numbers assigned to // extern variables declared in headers). #pragma increment_block_number 60 ALIGNED(16) SaveContext gSaveContext; u32 D_8015FA88; u32 D_8015FA8C; void SaveContext_Init(void) { bzero(&gSaveContext, sizeof(gSaveContext)); D_8015FA88 = 0; D_8015FA8C = 0; gSaveContext.seqId = (u8)NA_BGM_DISABLED; gSaveContext.natureAmbienceId = NATURE_ID_DISABLED; gSaveContext.forcedSeqId = NA_BGM_GENERAL_SFX; gSaveContext.nextCutsceneIndex = 0xFFEF; gSaveContext.cutsceneTrigger = 0; gSaveContext.chamberCutsceneNum = CHAMBER_CS_FOREST; gSaveContext.nextDayTime = NEXT_TIME_NONE; gSaveContext.skyboxTime = 0; gSaveContext.dogIsLost = true; gSaveContext.nextTransitionType = TRANS_NEXT_TYPE_DEFAULT; gSaveContext.prevHudVisibilityMode = HUD_VISIBILITY_ALL; #if OOT_NTSC gSaveContext.language = LANGUAGE_ENG; #endif }