mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
Add optional dev config value
This commit is contained in:
parent
467c8dc584
commit
57422a6105
@ -32,6 +32,14 @@ void ParseConfig(const nlohmann::json& d) {
|
||||
CachingDirectory = d["CachingDirectory"].get<std::string>();
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user