fix: save space indicator
Credits to smartcmd for the base of this
This commit is contained in:
@@ -142,3 +142,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