Core: Zip load in CN64System::LoadState uses utf16 path

This commit is contained in:
zilmar 2024-11-21 10:48:16 +10:30
parent 58a13b8e28
commit 48b3e5a9a2
1 changed files with 3 additions and 1 deletions

View File

@ -1871,7 +1871,9 @@ bool CN64System::LoadState(const char * FileName)
{
SaveFile.SetNameExtension(stdstr_f("%s.zip", SaveFile.GetNameExtension().c_str()).c_str());
}
unzFile file = unzOpen(SaveFile);
zlib_filefunc64_def ffunc;
fill_win32_filefunc64W(&ffunc);
unzFile file = unzOpen2_64(stdstr((std::string &)SaveFile).ToUTF16().c_str(), &ffunc);
int port = -1;
if (file != nullptr)
{