Rip Settings out of Rando::Context (#4943)

Not completely happy with everything here but this should fix the bugs
related to settings getting cleared on save load.
This commit is contained in:
Christopher Leggett 2025-01-27 13:30:04 -05:00 committed by GitHub
commit b5e6342bc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1048 additions and 932 deletions

View file

@ -490,7 +490,7 @@ void CheckTrackerLoadGame(int32_t fileNum) {
}
}
if (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_LINKS_POCKET) != RO_LINKS_POCKET_NOTHING && IS_RANDO) {
uint8_t startingAge = OTRGlobals::Instance->gRandoContext->GetOption(RSK_SELECTED_STARTING_AGE).GetContextOptionIndex();
uint8_t startingAge = OTRGlobals::Instance->gRandoContext->GetOption(RSK_SELECTED_STARTING_AGE).Get();
RandomizerCheckArea startingArea;
switch (startingAge) {
case RO_AGE_CHILD: