ISOFileSystem: Move the level into the tree nodes

This commit is contained in:
Henrik Rydgard
2016-02-28 11:51:15 +01:00
parent afc8736b9a
commit 0b95c4bbd1
2 changed files with 15 additions and 7 deletions
+5 -2
View File
@@ -56,7 +56,7 @@ public:
private:
struct TreeEntry {
TreeEntry(){}
TreeEntry() : flags(0), valid(false) {}
~TreeEntry();
std::string name;
@@ -67,8 +67,11 @@ private:
u32 startsector;
u32 dirsize;
int level;
TreeEntry *parent;
bool valid;
std::vector<TreeEntry *> children;
};
@@ -93,7 +96,7 @@ private:
// Don't use this in the emu, not savestated.
std::vector<std::string> restrictTree;
void ReadDirectory(TreeEntry *root, size_t level);
void ReadDirectory(TreeEntry *root);
TreeEntry *GetFromPath(const std::string &path, bool catchError = true);
std::string EntryFullPath(TreeEntry *e);
};