mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 11:15:20 +02:00
Speed up reading multiple isos in a row.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
#include "FileSystem.h"
|
||||
|
||||
@@ -53,7 +54,7 @@ private:
|
||||
~TreeEntry()
|
||||
{
|
||||
for (unsigned int i=0; i<children.size(); i++)
|
||||
delete children[i];
|
||||
ISOFileSystem::ReleaseTreeEntry(children[i]);
|
||||
children.clear();
|
||||
}
|
||||
|
||||
@@ -89,4 +90,8 @@ private:
|
||||
void ReadDirectory(u32 startsector, u32 dirsize, TreeEntry *root);
|
||||
TreeEntry *GetFromPath(std::string path, bool catchError=true);
|
||||
std::string EntryFullPath(TreeEntry *e);
|
||||
|
||||
static std::list<ISOFileSystem::TreeEntry *> entryFreeList;
|
||||
static TreeEntry *GetTreeEntry();
|
||||
static void ReleaseTreeEntry(TreeEntry *entry);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user