summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorAdam Bird <Archez@users.noreply.github.com>2022-12-06 23:44:14 -0500
committerGitHub <noreply@github.com>2022-12-06 23:44:14 -0500
commit8337e4e24f0a7d1a0dbb472c330d5b1895a1a9ff (patch)
treede15c67643e951c3e32c646a2dd58abfc46e451b /soh/src/code
parentf9fe3f8fb31f52b21b401b8c504347af84ea936f (diff)
Rando: Entrance Tracker v1 (#2005)
* initial pass for entrance tracker * add search meta tags to entrance tracker data; clear entrance tracker on title screen * rename to use playstate/play * fix lus imports * move discovered entrance info to SohStats struct * Add scene info and highlighting to entrance tracker * hide undiscovered text when searching * add comments for entrance tracker * fix merge conflict error * account for zora river -> hyrule field water entrance in tracker * fix assignement error * remove unneeded defaults from debug file init * adjust entrance tracker settings and add more search tags * convert magic numbers to defines; add more comments to entrance tracker; clarify variable names * add reverse index to entrance tracker data to compare with instead of using strings * rename variables
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_sram.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/code/z_sram.c b/soh/src/code/z_sram.c
index db6b3299a..adb778f1c 100644
--- a/soh/src/code/z_sram.c
+++ b/soh/src/code/z_sram.c
@@ -200,6 +200,7 @@ void Sram_OpenSave() {
// Setup the modified entrance table and entrance shuffle table for rando
if (gSaveContext.n64ddFlag) {
Entrance_Init();
+ Entrance_InitEntranceTrackingData();
}
osSyncPrintf("scene_no = %d\n", gSaveContext.entranceIndex);
@@ -583,4 +584,6 @@ void Sram_InitSram(GameState* gameState) {
// When going from a rando save to a vanilla save within the same game instance
// we need to reset the entrance table back to its vanilla state
Entrance_ResetEntranceTable();
+ // Clear out the entrance tracker
+ Entrance_ClearEntranceTrackingData();
}