mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-10-27 12:49:59 +00:00
Fix for linux
This commit is contained in:
1 parent
18c01fddfe
commit
b974f194da
1 file changed
+3
-1
+3
-1
@@ -127,12 +127,14 @@ int BeamMPServerMain(const MainArguments& Arguments) {
|
|||||||
std::string locale = MaybeLocale.value();
|
std::string locale = MaybeLocale.value();
|
||||||
setlocale(LC_ALL, locale.c_str());
|
setlocale(LC_ALL, locale.c_str());
|
||||||
beammp_info("Custom locale requested via commandline arguments: '" + locale + "'");
|
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.");
|
beammp_info("Found Russian locale. Set CP1251 console coding.");
|
||||||
SetConsoleCP(1251);
|
SetConsoleCP(1251);
|
||||||
SetConsoleOutputCP(1251);
|
SetConsoleOutputCP(1251);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Application::SetSubsystemStatus("Main", Application::Status::Starting);
|
Application::SetSubsystemStatus("Main", Application::Status::Starting);
|
||||||
|
|||||||
Reference in new issue
Block a user