diff -r 6218bb7908e7 lib/irrlicht/include/IFileSystem.h --- a/lib/irrlicht/include/IFileSystem.h Wed Sep 23 17:23:14 2009 +0200 +++ b/lib/irrlicht/include/IFileSystem.h Wed Sep 23 17:30:14 2009 +0200 @@ -226,6 +226,12 @@ public: See IReferenceCounted::drop() for more information. */ virtual IFileList* createFileList() =0; + //! Creates an empty filelist + /** \return a Pointer to the created IFileList is returned. After the list has been used + it has to be deleted using its IFileList::drop() method. + See IReferenceCounted::drop() for more information. */ + virtual IFileList* createEmptyFileList(const io::path& path, bool ignoreCase, bool ignorePaths) =0; + //! Set the active type of file system. virtual EFileSystemType setFileListSystem(EFileSystemType listType) =0; diff -r 6218bb7908e7 lib/irrlicht/source/Irrlicht/CFileSystem.cpp --- a/lib/irrlicht/source/Irrlicht/CFileSystem.cpp Wed Sep 23 17:23:14 2009 +0200 +++ b/lib/irrlicht/source/Irrlicht/CFileSystem.cpp Wed Sep 23 17:30:14 2009 +0200 @@ -689,6 +689,12 @@ IFileList* CFileSystem::createFileList() return r; } +//! Creates an empty filelist +IFileList* CFileSystem::createEmptyFileList(const io::path& path, bool ignoreCase, bool ignorePaths) +{ + return new CFileList(path, ignoreCase, ignorePaths); +} + //! determines if a file exists and would be able to be opened. bool CFileSystem::existFile(const io::path& filename) const { diff -r 6218bb7908e7 lib/irrlicht/source/Irrlicht/CFileSystem.h --- a/lib/irrlicht/source/Irrlicht/CFileSystem.h Wed Sep 23 17:23:14 2009 +0200 +++ b/lib/irrlicht/source/Irrlicht/CFileSystem.h Wed Sep 23 17:30:14 2009 +0200 @@ -96,6 +96,9 @@ public: //! and returns it. virtual IFileList* createFileList(); + //! Creates an empty filelist + virtual IFileList* createEmptyFileList(const io::path& path, bool ignoreCase, bool ignorePaths); + //! determines if a file exists and would be able to be opened. virtual bool existFile(const io::path& filename) const;