From 944a4c2e46f042edcbb2116471efcb8eeb9d52fe Mon Sep 17 00:00:00 2001 From: Jordan Gilbreath <3819183+jordanpg@users.noreply.github.com> Date: Mon, 1 Jan 2024 20:20:34 -0500 Subject: [PATCH] Fix settings persistence across sessions (#3779) Co-authored-by: jordanpg --- soh/soh/SaveManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp index 1c3698e88..79e9a043c 100644 --- a/soh/soh/SaveManager.cpp +++ b/soh/soh/SaveManager.cpp @@ -2725,6 +2725,8 @@ extern "C" void Save_LoadFile(void) { // Reset rando context for rando saves. OTRGlobals::Instance->gRandoContext.reset(); OTRGlobals::Instance->gRandoContext = Rando::Context::CreateInstance(); + OTRGlobals::Instance->gRandoContext->AddExcludedOptions(); + OTRGlobals::Instance->gRandoContext->GetSettings()->CreateOptions(); } SaveManager::Instance->LoadFile(gSaveContext.fileNum); }