diff --git a/src/Settings.cpp b/src/Settings.cpp index 6d96d0f..3dc5ad1 100644 --- a/src/Settings.cpp +++ b/src/Settings.cpp @@ -36,7 +36,7 @@ Settings::Settings() { { General_Debug, false }, { General_AllowGuests, true }, { General_InformationPacket, true }, - { General_Region, std::string("Global")}, + { General_Region, std::string("")}, { Misc_ImScaredOfUpdates, true }, { Misc_UpdateReminderTime, "30s" } }; diff --git a/src/TConfig.cpp b/src/TConfig.cpp index ce4b90b..6b00944 100644 --- a/src/TConfig.cpp +++ b/src/TConfig.cpp @@ -52,8 +52,8 @@ static constexpr std::string_view StrTags = "Tags"; static constexpr std::string_view EnvStrTags = "BEAMMP_TAGS"; static constexpr std::string_view StrResourceFolder = "ResourceFolder"; static constexpr std::string_view EnvStrResourceFolder = "BEAMMP_RESOURCE_FOLDER"; -static constexpr std::string_view StrRegion = "Region"; -static constexpr std::string_view EnvStrRegion = "BEAMMP_REGION"; +static constexpr std::string_view StrRegion = "BackendRegion"; +static constexpr std::string_view EnvStrRegion = "BEAMMP_BACKEND_REGION"; static constexpr std::string_view StrAuthKey = "AuthKey"; static constexpr std::string_view EnvStrAuthKey = "BEAMMP_AUTH_KEY"; static constexpr std::string_view StrLogChat = "LogChat"; @@ -153,7 +153,7 @@ void TConfig::FlushToFile() { data["General"][StrMap.data()] = Application::Settings.getAsString(Settings::Key::General_Map); data["General"][StrDescription.data()] = Application::Settings.getAsString(Settings::Key::General_Description); data["General"][StrResourceFolder.data()] = Application::Settings.getAsString(Settings::Key::General_ResourceFolder); - data["General"][StrRegion.data()] = Application::Settings.getAsString(Settings::Key::General_Region); + // data["General"][StrRegion.data()] = Application::Settings.getAsString(Settings::Key::General_Region); // data["General"][StrPassword.data()] = Application::Settings.Password; // SetComment(data["General"][StrPassword.data()].comments(), " Sets a password on this server, which restricts people from joining. To join, a player must enter this exact password. Leave empty ("") to disable the password."); // Misc