Speed up reading multiple isos in a row.

This commit is contained in:
Unknown W. Brackets
2013-03-31 20:58:24 -07:00
parent 086fd24edb
commit 20bb55e1cb
2 changed files with 30 additions and 4 deletions
+6 -1
View File
@@ -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);
};