summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-10 18:09:25 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-21 22:43:10 +0200
commit9bee8852829bfb99025397186d9d1b2e7dec9c30 (patch)
treea8799147709392a19b7613699deb0b62d875fb0d
parentbis_factory: Add accessors for BIS content directories (diff)
downloadyuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar
yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar.gz
yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar.bz2
yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar.lz
yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar.xz
yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar.zst
yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/bis_factory.cpp4
-rw-r--r--src/core/file_sys/bis_factory.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/bis_factory.cpp b/src/core/file_sys/bis_factory.cpp
index be737b9ad..b8967853f 100644
--- a/src/core/file_sys/bis_factory.cpp
+++ b/src/core/file_sys/bis_factory.cpp
@@ -88,4 +88,8 @@ VirtualFile BISFactory::OpenPartitionStorage(BisPartitionId id) const {
}
}
+VirtualDir BISFactory::GetImageDirectory() const {
+ return GetOrCreateDirectoryRelative(nand_root, "/user/Album");
+}
+
} // namespace FileSys
diff --git a/src/core/file_sys/bis_factory.h b/src/core/file_sys/bis_factory.h
index bfebceeaf..38dcd28dc 100644
--- a/src/core/file_sys/bis_factory.h
+++ b/src/core/file_sys/bis_factory.h
@@ -49,6 +49,8 @@ public:
VirtualDir OpenPartition(BisPartitionId id) const;
VirtualFile OpenPartitionStorage(BisPartitionId id) const;
+ VirtualDir GetImageDirectory() const;
+
private:
VirtualDir nand_root;
VirtualDir load_root;