Fix Child Zelda Skip rando setting always on

This commit is contained in:
Josh Bodner 2022-07-20 19:57:38 -07:00
parent 235cef6abf
commit 3633bdeeaf
2 changed files with 67 additions and 63 deletions

View File

@ -373,7 +373,7 @@ static void WriteSettings(const bool printAll = false) {
}
// 3drando doesn't have a "skip child zelda" setting, manually add it to the spoilerfile
jsonData["settings"]["Skip Child Zelda"] = Settings::skipChildZelda;
jsonData["settings"]["Skip Child Zelda"] = std::format("{0}", Settings::skipChildZelda);
}
// spoilerLog.RootElement()->InsertEndChild(parentNode);

View File

@ -1678,7 +1678,11 @@ void Randomizer::ParseRandomizerSettingsFile(const char* spoilerFileName) {
}
break;
case RSK_SKIP_CHILD_ZELDA:
gSaveContext.randoSettings[index].value = it.value();
if (it.value() == "false") {
gSaveContext.randoSettings[index].value = 0;
} else if (it.value() == "true") {
gSaveContext.randoSettings[index].value = 1;
}
break;
case RSK_STARTING_CONSUMABLES:
case RSK_FULL_WALLETS: