Support unicode in windows terminal

This commit is contained in:
Tixx
2025-09-21 21:39:57 +02:00
parent c40af681bf
commit 1209ff88e2
2 changed files with 8 additions and 6 deletions

View File

@@ -269,6 +269,8 @@ void LinuxPatch() {
void InitLauncher() {
SetConsoleTitleA(("BeamMP Launcher v" + std::string(GetVer()) + GetPatch()).c_str());
SetConsoleOutputCP(CP_UTF8);
_setmode(_fileno(stdout), _O_U8TEXT);
debug("Launcher Version : " + GetVer() + GetPatch());
CheckName();
LinuxPatch();