vfs: Add GetEntries method

Maps name string to directory or file.
This commit is contained in:
Zach Hilman 2018-09-19 21:54:14 -04:00
parent 2f2bd3b952
commit df19124e6d
4 changed files with 32 additions and 0 deletions

View file

@ -98,6 +98,7 @@ public:
bool DeleteFile(std::string_view name) override;
bool Rename(std::string_view name) override;
std::string GetFullPath() const override;
std::map<std::string, VfsEntryType> GetEntries() const override;
protected:
bool ReplaceFileWithSubdirectory(VirtualFile file, VirtualDir dir) override;