summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_layered.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-26 22:09:16 +0200
committerGitHub <noreply@github.com>2018-09-26 22:09:16 +0200
commit92dd496fb94385aa16adec75d6eb8bc3ef29c6b0 (patch)
tree113a0ad25b279c70d825514e9e35020f08a366a4 /src/core/file_sys/vfs_layered.h
parentMerge pull request #1398 from lioncash/macos (diff)
parentpatch_manager: Invert conditionals within ApplyLayeredFS() (diff)
downloadyuzu-92dd496fb94385aa16adec75d6eb8bc3ef29c6b0.tar
yuzu-92dd496fb94385aa16adec75d6eb8bc3ef29c6b0.tar.gz
yuzu-92dd496fb94385aa16adec75d6eb8bc3ef29c6b0.tar.bz2
yuzu-92dd496fb94385aa16adec75d6eb8bc3ef29c6b0.tar.lz
yuzu-92dd496fb94385aa16adec75d6eb8bc3ef29c6b0.tar.xz
yuzu-92dd496fb94385aa16adec75d6eb8bc3ef29c6b0.tar.zst
yuzu-92dd496fb94385aa16adec75d6eb8bc3ef29c6b0.zip
Diffstat (limited to 'src/core/file_sys/vfs_layered.h')
-rw-r--r--src/core/file_sys/vfs_layered.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/file_sys/vfs_layered.h b/src/core/file_sys/vfs_layered.h
index 4f6e341ab..d85310f57 100644
--- a/src/core/file_sys/vfs_layered.h
+++ b/src/core/file_sys/vfs_layered.h
@@ -9,20 +9,18 @@
namespace FileSys {
-// Wrapper function to allow for more efficient handling of dirs.size() == 0, 1 cases.
-VirtualDir LayerDirectories(std::vector<VirtualDir> dirs, std::string name = "");
-
// Class that stacks multiple VfsDirectories on top of each other, attempting to read from the first
// one and falling back to the one after. The highest priority directory (overwrites all others)
// should be element 0 in the dirs vector.
class LayeredVfsDirectory : public VfsDirectory {
- friend VirtualDir LayerDirectories(std::vector<VirtualDir> dirs, std::string name);
-
LayeredVfsDirectory(std::vector<VirtualDir> dirs, std::string name);
public:
~LayeredVfsDirectory() override;
+ /// Wrapper function to allow for more efficient handling of dirs.size() == 0, 1 cases.
+ static VirtualDir MakeLayeredDirectory(std::vector<VirtualDir> dirs, std::string name = "");
+
std::shared_ptr<VfsFile> GetFileRelative(std::string_view path) const override;
std::shared_ptr<VfsDirectory> GetDirectoryRelative(std::string_view path) const override;
std::shared_ptr<VfsFile> GetFile(std::string_view name) const override;