Add optional dev config value

This commit is contained in:
Tixx 2024-09-23 00:00:39 +02:00
parent 467c8dc584
commit 57422a6105

View File

@ -32,6 +32,14 @@ void ParseConfig(const nlohmann::json& d) {
CachingDirectory = d["CachingDirectory"].get<std::string>(); CachingDirectory = d["CachingDirectory"].get<std::string>();
info("Mod caching directory: " + CachingDirectory); info("Mod caching directory: " + CachingDirectory);
} }
if (d.contains("Dev") && d["Dev"].is_boolean()) {
bool dev = d["Dev"].get<bool>();
options.verbose = dev;
options.no_download = dev;
options.no_launch = dev;
options.no_update = dev;
}
} }
void ConfigInit() { void ConfigInit() {