mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-03 19:52:26 +00:00
Minecraft.Client: fix even more unicode-related linux errors
This commit is contained in:
parent
6bfd396721
commit
abd8ec11fd
|
|
@ -354,7 +354,7 @@ int DLCTexturePack::packMounted(LPVOID pParam,int iPad,DWORD dwErr,DWORD dwLicen
|
||||||
File grf( getFilePath(texturePack->m_dlcInfoPack->GetPackID(), dlcFile->getGrfPath() ) );
|
File grf( getFilePath(texturePack->m_dlcInfoPack->GetPackID(), dlcFile->getGrfPath() ) );
|
||||||
if (grf.exists())
|
if (grf.exists())
|
||||||
{
|
{
|
||||||
#ifdef _UNICODE
|
#if defined(_UNICODE) && !defined(__linux__)
|
||||||
wstring path = grf.getPath();
|
wstring path = grf.getPath();
|
||||||
const WCHAR *pchFilename=path.c_str();
|
const WCHAR *pchFilename=path.c_str();
|
||||||
HANDLE fileHandle = CreateFile(
|
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() ));
|
File grf(getFilePath(texturePack->m_dlcInfoPack->GetPackID(), levelGen->getBaseSavePath() ));
|
||||||
if (grf.exists())
|
if (grf.exists())
|
||||||
{
|
{
|
||||||
#ifdef _UNICODE
|
#if defined(_UNICODE) && !defined(__linux__)
|
||||||
wstring path = grf.getPath();
|
wstring path = grf.getPath();
|
||||||
const WCHAR *pchFilename=path.c_str();
|
const WCHAR *pchFilename=path.c_str();
|
||||||
HANDLE fileHandle = CreateFile(
|
HANDLE fileHandle = CreateFile(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue