summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-10 18:08:39 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-21 22:43:10 +0200
commit4dae5a52a832cc3c4679aba80fd8b15c56ded93a (patch)
tree6fb3e45fd57245c52a3b12a13f0f737b84fc8443 /src
parentbis_factory: Add accessors for BIS partitions (diff)
downloadyuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar.gz
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar.bz2
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar.lz
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar.xz
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar.zst
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/bis_factory.cpp8
-rw-r--r--src/core/file_sys/bis_factory.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/core/file_sys/bis_factory.cpp b/src/core/file_sys/bis_factory.cpp
index 70a04f6a0..be737b9ad 100644
--- a/src/core/file_sys/bis_factory.cpp
+++ b/src/core/file_sys/bis_factory.cpp
@@ -18,6 +18,14 @@ BISFactory::BISFactory(VirtualDir nand_root_, VirtualDir load_root_, VirtualDir
BISFactory::~BISFactory() = default;
+VirtualDir BISFactory::GetSystemNANDContentDirectory() const {
+ return GetOrCreateDirectoryRelative(nand_root, "/system/Contents");
+}
+
+VirtualDir BISFactory::GetUserNANDContentDirectory() const {
+ return GetOrCreateDirectoryRelative(nand_root, "/user/Contents");
+}
+
RegisteredCache* BISFactory::GetSystemNANDContents() const {
return sysnand_cache.get();
}
diff --git a/src/core/file_sys/bis_factory.h b/src/core/file_sys/bis_factory.h
index f8413d4ef..bfebceeaf 100644
--- a/src/core/file_sys/bis_factory.h
+++ b/src/core/file_sys/bis_factory.h
@@ -37,6 +37,9 @@ public:
explicit BISFactory(VirtualDir nand_root, VirtualDir load_root, VirtualDir dump_root);
~BISFactory();
+ VirtualDir GetSystemNANDContentDirectory() const;
+ VirtualDir GetUserNANDContentDirectory() const;
+
RegisteredCache* GetSystemNANDContents() const;
RegisteredCache* GetUserNANDContents() const;