diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-20 03:54:14 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-09-22 01:53:05 +0200 |
commit | d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2 (patch) | |
tree | a3a84cdbe3dead1399c8c6d4bdf5c2c394be5b73 /src/core/file_sys/vfs.h | |
parent | common_paths: Add Load and Dump dirs (diff) | |
download | yuzu-d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2.tar yuzu-d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2.tar.gz yuzu-d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2.tar.bz2 yuzu-d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2.tar.lz yuzu-d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2.tar.xz yuzu-d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2.tar.zst yuzu-d6cbb3a3e0d89508e53accac1c2b823dae5e8cc2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/vfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h index 74489b452..828e87f38 100644 --- a/src/core/file_sys/vfs.h +++ b/src/core/file_sys/vfs.h @@ -4,6 +4,7 @@ #pragma once +#include <map> #include <memory> #include <string> #include <string_view> @@ -265,6 +266,10 @@ public: // dest. virtual bool Copy(std::string_view src, std::string_view dest); + // Gets all of the entries directly in the directory (files and dirs), returning a map between + // item name -> type. + virtual std::map<std::string, VfsEntryType> GetEntries() const; + // Interprets the file with name file instead as a directory of type directory. // The directory must have a constructor that takes a single argument of type // std::shared_ptr<VfsFile>. Allows to reinterpret container files (i.e NCA, zip, XCI, etc) as a |