mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 07:10:40 +00:00
Fix for linux
This commit is contained in:
@@ -127,12 +127,14 @@ int BeamMPServerMain(const MainArguments& Arguments) {
|
||||
std::string locale = MaybeLocale.value();
|
||||
setlocale(LC_ALL, locale.c_str());
|
||||
beammp_info("Custom locale requested via commandline arguments: '" + locale + "'");
|
||||
if ((locale == "Russian" || locale == "Rus") && WIN32) {
|
||||
#if WIN32
|
||||
if (locale == "Russian" || locale == "Rus") {
|
||||
beammp_info("Found Russian locale. Set CP1251 console coding.");
|
||||
SetConsoleCP(1251);
|
||||
SetConsoleOutputCP(1251);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Application::SetSubsystemStatus("Main", Application::Status::Starting);
|
||||
|
||||
Reference in New Issue
Block a user