- Manual cache cleanup in the menu to help a bit with issue 693. This is unfortunately not enough, we are dealing with ram fragmentation problems here :(
This commit is contained in:
@@ -115,6 +115,9 @@ public:
|
||||
// Returns a string prefixed with the resource path
|
||||
string GetResourceFile(string filename);
|
||||
|
||||
// Manually Clear the zip cache
|
||||
void clearZipCache();
|
||||
|
||||
protected:
|
||||
JFileSystem();
|
||||
~JFileSystem();
|
||||
@@ -128,6 +131,7 @@ private:
|
||||
char *mPassword;
|
||||
bool mZipAvailable;
|
||||
void preloadZip(const string& filename);
|
||||
|
||||
#if defined (PSP)
|
||||
SceUID mFile;
|
||||
#else
|
||||
|
||||
Binary file not shown.
@@ -110,6 +110,11 @@ JFileSystem::JFileSystem()
|
||||
|
||||
|
||||
JFileSystem::~JFileSystem()
|
||||
{
|
||||
clearZipCache();
|
||||
}
|
||||
|
||||
void JFileSystem::clearZipCache()
|
||||
{
|
||||
DetachZipFile();
|
||||
|
||||
@@ -120,7 +125,6 @@ JFileSystem::~JFileSystem()
|
||||
mZipCache.clear();
|
||||
}
|
||||
|
||||
|
||||
bool JFileSystem::AttachZipFile(const string &zipfile, char *password /* = NULL */)
|
||||
{
|
||||
if (mZipAvailable && mZipFile != NULL)
|
||||
|
||||
Reference in New Issue
Block a user