add config menu and hook it up into current config system

currently any options that requires additional settings, like "Hyrule Barrier Requirements", wont actually have any additional options yet until i figure out a clean way to handle that
This commit is contained in:
CraftyBoss
2026-05-10 23:13:02 -07:00
parent 83480110fd
commit 04d9640eff
13 changed files with 431 additions and 102 deletions
+9 -1
View File
@@ -31,11 +31,19 @@ namespace randomizer
return std::nullopt;
}
void Randomizer::LoadConfig() {
this->_config.LoadFromFile(GetConfigPath(), GetPrefPath());
}
void Randomizer::GenerateWorlds()
{
utility::time::ScopedTimer<"Seed generation took ", std::chrono::milliseconds> timer;
this->_worlds.clear();
this->_config.LoadFromFile(this->GetBaseOutputPath() + "settings.yaml", this->GetBaseOutputPath() + "preferences.yaml");
this->_eventIdCounter = 0;
this->_areaIdCounter = 0;
this->_locAccIdCounter = 0;
this->_playthroughSpheres.clear();
this->_entranceSpheres.clear();
utility::platform::Log(std::string("Seed: ") + this->_config.GetSeed());