make hide_download_commands configurable

This commit is contained in:
Martin Michelsen
2023-12-24 22:50:33 -08:00
parent 84ed80365c
commit ad32c0a986
7 changed files with 14 additions and 3 deletions
+2
View File
@@ -67,6 +67,7 @@ ServerState::ServerState(shared_ptr<struct event_base> base, const string& confi
ep3_final_round_meseta_bonus(300),
ep3_jukebox_is_free(false),
ep3_behavior_flags(0),
hide_download_commands(true),
run_shell_behavior(RunShellBehavior::DEFAULT),
cheat_mode_behavior(BehaviorSwitch::OFF_BY_DEFAULT),
bb_global_exp_multiplier(1),
@@ -719,6 +720,7 @@ void ServerState::parse_config(const JSON& json, bool is_reload) {
this->ep3_jukebox_is_free = json.get_bool("Episode3JukeboxIsFree", this->ep3_jukebox_is_free);
this->ep3_behavior_flags = json.get_int("Episode3BehaviorFlags", this->ep3_behavior_flags);
this->ep3_card_auction_points = json.get_int("CardAuctionPoints", this->ep3_card_auction_points);
this->hide_download_commands = json.get_bool("HideDownloadCommands", this->hide_download_commands);
this->proxy_allow_save_files = json.get_bool("ProxyAllowSaveFiles", this->proxy_allow_save_files);
this->proxy_enable_login_options = json.get_bool("ProxyEnableLoginOptions", this->proxy_enable_login_options);