fix(config): loaded flag and checks added

added check to make sure that config file has been loaded before any config variables are accessed
This commit is contained in:
2025-03-03 09:53:42 -05:00
parent e33a831eb5
commit bc6f86f752
2 changed files with 6 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ bool Config::loadConfig(const std::string& configFile) {
std::cerr << "Error: " << e.what() << std::endl;
return false;
}
loaded = true;
return true;
}