Hookify more Entrance Rando handling (#4500)
* Hookify more entrance rando handling * fix bad enums
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include <string.h>
|
||||
#include "soh/Enhancements/game-interactor/GameInteractor.h"
|
||||
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
|
||||
#include "soh/Enhancements/randomizer/randomizer_entrance.h"
|
||||
#include "soh/Enhancements/randomizer/savefile.h"
|
||||
|
||||
#define NUM_DUNGEONS 8
|
||||
@@ -100,7 +99,7 @@ void Sram_OpenSave() {
|
||||
gSaveContext.entranceIndex = ENTR_DODONGOS_CAVERN_ENTRANCE;
|
||||
break;
|
||||
case SCENE_JABU_JABU_BOSS:
|
||||
gSaveContext.entranceIndex = ENTR_JABU_JABU_BOSS_DOOR;
|
||||
gSaveContext.entranceIndex = ENTR_JABU_JABU_ENTRANCE;
|
||||
break;
|
||||
case SCENE_FOREST_TEMPLE_BOSS:
|
||||
gSaveContext.entranceIndex = ENTR_FOREST_TEMPLE_ENTRANCE;
|
||||
@@ -266,8 +265,4 @@ void Sram_InitSram(GameState* gameState) {
|
||||
Save_Init();
|
||||
|
||||
func_800F6700(gSaveContext.audioSetting);
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user