Minecraft.Client: fix some unicode-related linux errors

This commit is contained in:
ThePixelMoon 2026-03-05 07:40:23 +02:00
parent b9c29c69d8
commit 6bfd396721
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ byteArray ArchiveFile::getFile(const wstring &filename)
memcpy( out.data, m_cachedData + data->ptr, data->filesize );
#else
#ifdef _UNICODE
#if defined(_UNICODE) && !defined(__linux__)
HANDLE hfile = CreateFile( m_sourcefile.getPath().c_str(),
GENERIC_READ,
0,

View file

@ -8,7 +8,7 @@ UITTFFont::UITTFFont(const string &path, S32 fallbackCharacter)
{
app.DebugPrintf("UITTFFont opening %s\n",path.c_str());
#ifdef _UNICODE
#if defined(_UNICODE) && !defined(__linux__)
wstring wPath = convStringToWstring(path);
HANDLE file = CreateFile(wPath.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
#else