add option to disable save_files globally
This commit is contained in:
@@ -154,6 +154,12 @@ void populate_state_from_config(shared_ptr<ServerState> s,
|
||||
s->catch_handler_exceptions = true;
|
||||
}
|
||||
|
||||
try {
|
||||
s->proxy_allow_save_files = d.at("ProxyAllowSaveFiles")->as_bool();
|
||||
} catch (const out_of_range&) {
|
||||
s->proxy_allow_save_files = true;
|
||||
}
|
||||
|
||||
try {
|
||||
s->ep3_behavior_flags = d.at("Episode3BehaviorFlags")->as_int();
|
||||
} catch (const out_of_range&) {
|
||||
|
||||
Reference in New Issue
Block a user