Fix settings persistence across sessions (#3779)

Co-authored-by: jordanpg <jordanpg@users.noreply.github.com>
This commit is contained in:
Jordan Gilbreath 2024-01-01 20:20:34 -05:00 committed by GitHub
parent c9907ed5fc
commit 944a4c2e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}