mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-05 13:51:04 +00:00
Fix ttvfs bugs, sync with dev repo
This commit is contained in:
parent
6203bc7ce4
commit
b437a7cb2c
13 changed files with 84 additions and 108 deletions
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
/** Returns a file for this dir's subtree. Descends if necessary.
|
||||
Returns NULL if the file is not found. */
|
||||
File *getFile(const char *fn, bool lazyLoad = true);
|
||||
File *getFile(const char *fn);
|
||||
|
||||
/** Returns a subdir, descends if necessary. If forceCreate is true,
|
||||
create directory tree if it does not exist, and return the originally requested
|
||||
|
@ -90,6 +90,8 @@ public:
|
|||
virtual File *getFileByName(const char *fn, bool lazyLoad = true) = 0;
|
||||
virtual DirBase *getDirByName(const char *fn, bool lazyLoad = true, bool useSubtrees = true);
|
||||
|
||||
virtual File *getFileFromSubdir(const char *subdir, const char *file) = 0;
|
||||
|
||||
/** Iterate over all files or directories, calling a callback function,
|
||||
optionally with additional userdata. If safe is true, iterate over a copy.
|
||||
This is useful if the callback function modifies the tree, e.g.
|
||||
|
@ -135,6 +137,7 @@ public:
|
|||
bool _addToView(char *path, DirView& view);
|
||||
DirBase *getDirByName(const char *dn, bool lazyLoad = true, bool useSubtrees = true);
|
||||
File *getFileByName(const char *fn, bool lazyLoad = true);
|
||||
File *getFileFromSubdir(const char *subdir, const char *file);
|
||||
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue