diff options
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: |