mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-24 06:45:52 +00:00
Minecraft.Client: fix some unicode-related linux errors
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user