add option to disable save_files globally

This commit is contained in:
Martin Michelsen
2022-12-13 23:53:06 -08:00
parent ae49ca0189
commit cf2f1ef529
6 changed files with 27 additions and 7 deletions
+6
View File
@@ -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&) {