From abd8ec11fd30bef920586bc6692a5f5f1bb84788 Mon Sep 17 00:00:00 2001 From: ThePixelMoon Date: Thu, 5 Mar 2026 07:43:25 +0200 Subject: [PATCH] Minecraft.Client: fix even more unicode-related linux errors --- Minecraft.Client/DLCTexturePack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/DLCTexturePack.cpp b/Minecraft.Client/DLCTexturePack.cpp index ac4c3cf79..f7f0f0569 100644 --- a/Minecraft.Client/DLCTexturePack.cpp +++ b/Minecraft.Client/DLCTexturePack.cpp @@ -354,7 +354,7 @@ int DLCTexturePack::packMounted(LPVOID pParam,int iPad,DWORD dwErr,DWORD dwLicen File grf( getFilePath(texturePack->m_dlcInfoPack->GetPackID(), dlcFile->getGrfPath() ) ); if (grf.exists()) { -#ifdef _UNICODE +#if defined(_UNICODE) && !defined(__linux__) wstring path = grf.getPath(); const WCHAR *pchFilename=path.c_str(); HANDLE fileHandle = CreateFile( @@ -406,7 +406,7 @@ int DLCTexturePack::packMounted(LPVOID pParam,int iPad,DWORD dwErr,DWORD dwLicen File grf(getFilePath(texturePack->m_dlcInfoPack->GetPackID(), levelGen->getBaseSavePath() )); if (grf.exists()) { -#ifdef _UNICODE +#if defined(_UNICODE) && !defined(__linux__) wstring path = grf.getPath(); const WCHAR *pchFilename=path.c_str(); HANDLE fileHandle = CreateFile(