From 79bb654b80d5eb7a65814f80b9ca7ca1ccd62a00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Mar 2017 00:27:54 +0300 Subject: Reimplement VirtFs in correct way. Now all tests should pass. --- src/fs/virtfstools.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'src/fs/virtfstools.cpp') diff --git a/src/fs/virtfstools.cpp b/src/fs/virtfstools.cpp index cf3da4b7a..0b434a340 100644 --- a/src/fs/virtfstools.cpp +++ b/src/fs/virtfstools.cpp @@ -227,37 +227,3 @@ namespace VirtFs return true; } } // namespace VirtFs - -#ifdef USE_PHYSFS -// +++ temporary add it here -namespace VirtFsPhys -{ - void getFiles(const std::string &path, - StringVect &list) - { - VirtList *const fonts = VirtFsPhys::enumerateFiles(path); - FOR_EACH (StringVectCIter, i, fonts->names) - { - if (!VirtFsPhys::isDirectory(path + dirSeparator + *i)) - list.push_back(*i); - } - VirtFsPhys::freeList(fonts); - } -} // namespace VirtFs -#else // USE_PHYSFS -// +++ temporary add it here -namespace VirtFsDir -{ - void getFiles(const std::string &path, - StringVect &list) - { - VirtList *const fonts = VirtFsDir::enumerateFiles(path); - FOR_EACH (StringVectCIter, i, fonts->names) - { - if (!VirtFsDir::isDirectory(path + dirSeparator + *i)) - list.push_back(*i); - } - VirtFsDir::freeList(fonts); - } -} // namespace VirtFs -#endif // USE_PHYSFS -- cgit v1.2.3-70-g09d2