diff --git a/soh/soh/Enhancements/randomizer.cpp b/soh/soh/Enhancements/randomizer.cpp index 25a59b59f..e0884b3e8 100644 --- a/soh/soh/Enhancements/randomizer.cpp +++ b/soh/soh/Enhancements/randomizer.cpp @@ -510,6 +510,7 @@ std::unordered_map SpoilerfileGetNameToEnum = { void Randomizer::PopulateItemLocations(std::string spoilerFileName) { // todo pull this in from cvar or something std::ifstream spoilerFileStream("spoiler.json"); + if (!spoilerFileStream) return; json spoilerFileJson; spoilerFileStream >> spoilerFileJson; json locationsJson = spoilerFileJson["locations"]; diff --git a/soh/soh/Enhancements/randomizer.h b/soh/soh/Enhancements/randomizer.h index d6103a122..3dca65538 100644 --- a/soh/soh/Enhancements/randomizer.h +++ b/soh/soh/Enhancements/randomizer.h @@ -278,6 +278,7 @@ typedef enum { // based on https://github.com/TestRunnerSRL/OoT-Randomizer/blob/e337d7f603b91a6bacb618fb32cc7fd70ed9ffca/ItemList.py typedef enum { + UNKNOWN_GET = 0, BOMBS_5, DEKU_NUTS_5, BOMBCHUS_10, @@ -499,8 +500,7 @@ typedef enum { WATER_MEDALLION, SPIRIT_MEDALLION, SHADOW_MEDALLION, - LIGHT_MEDALLION, - UNKNOWN_GET + LIGHT_MEDALLION } RandomizerGet; class Randomizer {