diff options
| author | 2019-04-10 12:09:25 -0400 | |
|---|---|---|
| committer | 2019-09-21 16:43:10 -0400 | |
| commit | 9bee8852829bfb99025397186d9d1b2e7dec9c30 (patch) | |
| tree | a8799147709392a19b7613699deb0b62d875fb0d /src/core | |
| parent | bis_factory: Add accessors for BIS content directories (diff) | |
| download | yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar.gz yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.tar.xz yuzu-9bee8852829bfb99025397186d9d1b2e7dec9c30.zip | |
bis_factory: Add accessor for NAND Image Directory
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/bis_factory.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/bis_factory.h | 2 |
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 { | |||
| 88 | } | 88 | } |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | VirtualDir BISFactory::GetImageDirectory() const { | ||
| 92 | return GetOrCreateDirectoryRelative(nand_root, "/user/Album"); | ||
| 93 | } | ||
| 94 | |||
| 91 | } // namespace FileSys | 95 | } // 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: | |||
| 49 | VirtualDir OpenPartition(BisPartitionId id) const; | 49 | VirtualDir OpenPartition(BisPartitionId id) const; |
| 50 | VirtualFile OpenPartitionStorage(BisPartitionId id) const; | 50 | VirtualFile OpenPartitionStorage(BisPartitionId id) const; |
| 51 | 51 | ||
| 52 | VirtualDir GetImageDirectory() const; | ||
| 53 | |||
| 52 | private: | 54 | private: |
| 53 | VirtualDir nand_root; | 55 | VirtualDir nand_root; |
| 54 | VirtualDir load_root; | 56 | VirtualDir load_root; |