fix(windows64): save space indicator
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user