trying to figure stuff out

This commit is contained in:
briaguya 2022-08-19 10:36:54 -04:00
parent 0eee085981
commit db7e1bf332
2 changed files with 11 additions and 1 deletions

View File

@ -168,6 +168,10 @@ public:
return key; return key;
} }
RandomizerCheck GetRandomizerCheck() const {
return rc;
}
SpoilerCollectionCheck GetCollectionCheck() const { SpoilerCollectionCheck GetCollectionCheck() const {
return collectionCheck; return collectionCheck;
} }

View File

@ -2854,7 +2854,13 @@ void GenerateRandomizerImgui() {
cvarSettings[RSK_SKULLS_SUNS_SONG] = CVar_GetS32("gRandomizeGsExpectSunsSong", 0); cvarSettings[RSK_SKULLS_SUNS_SONG] = CVar_GetS32("gRandomizeGsExpectSunsSong", 0);
std::set<RandomizerCheck> excludedLocations = { RC_UNKNOWN_CHECK }; // todo: this efficently when we build out cvar array support
std::set<RandomizerCheck> excludedLocations;
std::stringstream excludedLocationStringStream(CVar_GetString("gRandomizeExcludedLocations", ""));
std::string excludedLocationString;
while(getline(excludedLocationStringStream, excludedLocationString, ',')) {
excludedLocations.insert((RandomizerCheck)std::stoi(excludedLocationString));
}
RandoMain::GenerateRando(cvarSettings, excludedLocations); RandoMain::GenerateRando(cvarSettings, excludedLocations);