summaryrefslogtreecommitdiff
path: root/soh/src/code/z_common_data.c
diff options
context:
space:
mode:
authorM4xw <m4x@m4xw.net>2022-03-22 02:51:23 +0100
committerM4xw <m4x@m4xw.net>2022-03-22 02:51:23 +0100
commit39cc86c2608e2f75ace33fc7f43bc4f2ad743f1a (patch)
tree0d3fd9e995d7484eaaeb158ac808bd6a39121189 /soh/src/code/z_common_data.c
parent0bb0e7b53bd80bdc7f78e08c441691737e039b2b (diff)
git subrepo clone https://github.com/HarbourMasters/soh.git
subrepo: subdir: "soh" merged: "ba904bbd0" upstream: origin: "https://github.com/HarbourMasters/soh.git" branch: "master" commit: "ba904bbd0" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
Diffstat (limited to 'soh/src/code/z_common_data.c')
-rw-r--r--soh/src/code/z_common_data.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/soh/src/code/z_common_data.c b/soh/src/code/z_common_data.c
new file mode 100644
index 000000000..e6682b18e
--- /dev/null
+++ b/soh/src/code/z_common_data.c
@@ -0,0 +1,23 @@
+#include "global.h"
+#include <string.h>
+
+SaveContext gSaveContext;
+u32 D_8015FA88;
+u32 D_8015FA8C;
+
+void SaveContext_Init(void) {
+ memset(&gSaveContext, 0, 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 = 0;
+ gSaveContext.nextDayTime = 0xFFFF;
+ gSaveContext.skyboxTime = 0;
+ gSaveContext.dogIsLost = true;
+ gSaveContext.nextTransition = 0xFF;
+ gSaveContext.unk_13EE = 50;
+}