Fixed cross-compiling with theos
This commit is contained in:
@@ -38,6 +38,12 @@ The content that users should not be touching.
|
||||
#include <QDir>
|
||||
#endif
|
||||
|
||||
/*
|
||||
#ifdef IOS
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
*/
|
||||
|
||||
JFileSystem* JFileSystem::mInstance = NULL;
|
||||
|
||||
JZipCache::JZipCache()
|
||||
@@ -248,7 +254,7 @@ void JFileSystem::clearZipCache()
|
||||
|
||||
bool JFileSystem::AttachZipFile(const string &zipfile, char *password /* = NULL */)
|
||||
{
|
||||
if (mZipAvailable && mZipFile != NULL)
|
||||
if (mZipAvailable && mZipFile.is_open())
|
||||
{
|
||||
if (mZipFileName != zipfile)
|
||||
DetachZipFile(); // close the previous zip file
|
||||
|
||||
Reference in New Issue
Block a user