summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-04-10 12:08:39 -0400
committerGravatar Zach Hilman2019-09-21 16:43:10 -0400
commit4dae5a52a832cc3c4679aba80fd8b15c56ded93a (patch)
tree6fb3e45fd57245c52a3b12a13f0f737b84fc8443 /src
parentbis_factory: Add accessors for BIS partitions (diff)
downloadyuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar.gz
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.tar.xz
yuzu-4dae5a52a832cc3c4679aba80fd8b15c56ded93a.zip
bis_factory: Add accessors for BIS content directories
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
18 18
19BISFactory::~BISFactory() = default; 19BISFactory::~BISFactory() = default;
20 20
21VirtualDir BISFactory::GetSystemNANDContentDirectory() const {
22 return GetOrCreateDirectoryRelative(nand_root, "/system/Contents");
23}
24
25VirtualDir BISFactory::GetUserNANDContentDirectory() const {
26 return GetOrCreateDirectoryRelative(nand_root, "/user/Contents");
27}
28
21RegisteredCache* BISFactory::GetSystemNANDContents() const { 29RegisteredCache* BISFactory::GetSystemNANDContents() const {
22 return sysnand_cache.get(); 30 return sysnand_cache.get();
23} 31}
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:
37 explicit BISFactory(VirtualDir nand_root, VirtualDir load_root, VirtualDir dump_root); 37 explicit BISFactory(VirtualDir nand_root, VirtualDir load_root, VirtualDir dump_root);
38 ~BISFactory(); 38 ~BISFactory();
39 39
40 VirtualDir GetSystemNANDContentDirectory() const;
41 VirtualDir GetUserNANDContentDirectory() const;
42
40 RegisteredCache* GetSystemNANDContents() const; 43 RegisteredCache* GetSystemNANDContents() const;
41 RegisteredCache* GetUserNANDContents() const; 44 RegisteredCache* GetUserNANDContents() const;
42 45