diff options
| author | 2019-04-10 12:31:41 -0400 | |
|---|---|---|
| committer | 2019-09-21 16:43:10 -0400 | |
| commit | 02b36b0eb564f60b751398f5e7e89e75e05c1c20 (patch) | |
| tree | 220cdb22c2ef13a8c18002d47d6845319d85148f /src | |
| parent | savedata_factory: Implement savedata creation and don't create dir on open (diff) | |
| download | yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar.gz yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar.xz yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.zip | |
sdmc_factory: Add accessor for content directory
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/sdmc_factory.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/sdmc_factory.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/core/file_sys/sdmc_factory.cpp b/src/core/file_sys/sdmc_factory.cpp index bd3a57058..e5668d70e 100644 --- a/src/core/file_sys/sdmc_factory.cpp +++ b/src/core/file_sys/sdmc_factory.cpp | |||
| @@ -22,6 +22,10 @@ ResultVal<VirtualDir> SDMCFactory::Open() { | |||
| 22 | return MakeResult<VirtualDir>(dir); | 22 | return MakeResult<VirtualDir>(dir); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | VirtualDir SDMCFactory::GetSDMCContentDirectory() const { | ||
| 26 | return GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents"); | ||
| 27 | } | ||
| 28 | |||
| 25 | RegisteredCache* SDMCFactory::GetSDMCContents() const { | 29 | RegisteredCache* SDMCFactory::GetSDMCContents() const { |
| 26 | return contents.get(); | 30 | return contents.get(); |
| 27 | } | 31 | } |
diff --git a/src/core/file_sys/sdmc_factory.h b/src/core/file_sys/sdmc_factory.h index 42794ba5b..a98e44f85 100644 --- a/src/core/file_sys/sdmc_factory.h +++ b/src/core/file_sys/sdmc_factory.h | |||
| @@ -19,6 +19,9 @@ public: | |||
| 19 | ~SDMCFactory(); | 19 | ~SDMCFactory(); |
| 20 | 20 | ||
| 21 | ResultVal<VirtualDir> Open(); | 21 | ResultVal<VirtualDir> Open(); |
| 22 | |||
| 23 | VirtualDir GetSDMCContentDirectory() const; | ||
| 24 | |||
| 22 | RegisteredCache* GetSDMCContents() const; | 25 | RegisteredCache* GetSDMCContents() const; |
| 23 | 26 | ||
| 24 | private: | 27 | private: |