fix(windows64): save space indicator

This commit is contained in:
str1k3r committed 2026-09-30 03:20:03 -04:00
1 parent ca003f1afa
commit 4e79d92c24
6 files changed
+56 -14

No files matched your search

@@ -227,3 +227,12 @@ int CConsoleMinecraftApp::LoadLocalTMSFile(WCHAR *wchTMSFile, eFileExtensionType
void CConsoleMinecraftApp::FreeLocalTMSFiles(eTMSFileType eType)
{
}
std::wstring CConsoleMinecraftApp::UTF8ToWide(const char* utf8)
{
int size = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, nullptr, 0);
std::wstring wstr(size, 0);
MultiByteToWideChar(CP_UTF8, 0, utf8, -1, &wstr[0], size);
wstr.resize(size - 1);
return wstr;
}
@@ -29,6 +29,9 @@ public:
// original code
virtual void TemporaryCreateGameStart();
// str1k3r - UTF8 to wchar
std::wstring UTF8ToWide(const char* utf8);
};
extern CConsoleMinecraftApp app;