From 63552d7584d34f4b99dc6a6c1f60407b3b76e63f Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Fri, 25 Oct 2024 18:47:18 +0200 Subject: [PATCH] fixing is_beta_branch in ini --- dll/settings_parser.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dll/settings_parser.cpp b/dll/settings_parser.cpp index 31ce0323..27acdc45 100644 --- a/dll/settings_parser.cpp +++ b/dll/settings_parser.cpp @@ -1207,6 +1207,10 @@ static bool parse_branches_file( return false; } + settings_client->is_beta_branch = ini.GetBoolValue("app::general", "is_beta_branch", settings_client->is_beta_branch); + settings_server->is_beta_branch = ini.GetBoolValue("app::general", "is_beta_branch", settings_server->is_beta_branch); + + // app::general::branch_name std::string selected_branch = common_helpers::string_strip(ini.GetValue("app::general", "branch_name", "")); if (selected_branch.empty()) { @@ -1376,9 +1380,6 @@ static void parse_simple_features(class Settings *settings_client, class Setting settings_client->disable_account_avatar = !ini.GetBoolValue("main::general", "enable_account_avatar", !settings_client->disable_account_avatar); settings_server->disable_account_avatar = !ini.GetBoolValue("main::general", "enable_account_avatar", !settings_server->disable_account_avatar); - settings_client->is_beta_branch = ini.GetBoolValue("main::general", "is_beta_branch", settings_client->is_beta_branch); - settings_server->is_beta_branch = ini.GetBoolValue("main::general", "is_beta_branch", settings_server->is_beta_branch); - settings_client->steam_deck = ini.GetBoolValue("main::general", "steam_deck", settings_client->steam_deck); settings_server->steam_deck = ini.GetBoolValue("main::general", "steam_deck", settings_server->steam_deck);