1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-14 02:21:00 +00:00

Fix ttvfs bugs, sync with dev repo

This commit is contained in:
fgenesis 2014-04-07 02:25:58 +02:00
commit b437a7cb2c
13 changed files with 84 additions and 108 deletions

View file

@ -65,9 +65,12 @@ bool DirView::_addToView(char *path, DirView& view)
return true;
}
static void __test__()
File *DirView::getFileFromSubdir(const char *subdir, const char *file)
{
new DirView;
for(ViewList::reverse_iterator it = _view.rbegin(); it != _view.rend(); ++it)
if(File* f = (*it)->getFileFromSubdir(subdir, file))
return f;
return NULL;
}
VFS_NAMESPACE_END