mirror of
https://github.com/zeldaret/oot.git
synced 2025-01-15 12:47:04 +00:00
3795574878
* Add all N64 ROMs to versions.h * Remove OOT_ prefix from version defines * Make it pretty
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
#include "global.h"
|
|
#include "region.h"
|
|
#include "versions.h"
|
|
|
|
#pragma increment_block_number "gc-eu:128 gc-eu-mq:128 gc-jp:128 gc-jp-ce:128 gc-jp-mq:128 gc-us:128 gc-us-mq:128"
|
|
|
|
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 && OOT_VERSION < GC_US
|
|
if (gCurrentRegion == REGION_JP) {
|
|
gSaveContext.language = LANGUAGE_JPN;
|
|
}
|
|
if (gCurrentRegion == REGION_US) {
|
|
gSaveContext.language = LANGUAGE_ENG;
|
|
}
|
|
#elif OOT_VERSION == GC_US || OOT_VERSION == GC_US_MQ
|
|
gSaveContext.language = LANGUAGE_ENG;
|
|
#elif OOT_VERSION == GC_JP_CE
|
|
gSaveContext.language = LANGUAGE_JPN;
|
|
#endif
|
|
}
|