mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Fix build error on non-windows
This commit is contained in:
1 parent
0e978ba2e3
commit
aca0f35bdf
1 file changed
+2
-2
@@ -143,7 +143,7 @@ ZipFileContents DetectZipFileContents(std::string fileName, ZipFileInfo *info) {
|
||||
#ifdef _WIN32
|
||||
struct zip *z = zip_open(ConvertUTF8ToWString(fileName).c_str(), 0, &error);
|
||||
#else
|
||||
struct zip *z = zip_open(zipfile.c_str(), 0, &error);
|
||||
struct zip *z = zip_open(fileName.c_str(), 0, &error);
|
||||
#endif
|
||||
if (!z) {
|
||||
return ZipFileContents::UNKNOWN;
|
||||
@@ -228,7 +228,7 @@ bool GameManager::InstallGame(std::string fileName, bool deleteAfter) {
|
||||
#ifdef _WIN32
|
||||
struct zip *z = zip_open(ConvertUTF8ToWString(fileName).c_str(), 0, &error);
|
||||
#else
|
||||
struct zip *z = zip_open(zipfile.c_str(), 0, &error);
|
||||
struct zip *z = zip_open(fileName.c_str(), 0, &error);
|
||||
#endif
|
||||
if (!z) {
|
||||
ERROR_LOG(HLE, "Failed to open ZIP file %s, error code=%i", fileName.c_str(), error);
|
||||
|
||||
Reference in new issue
Block a user