summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-10 18:31:41 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-21 22:43:10 +0200
commit02b36b0eb564f60b751398f5e7e89e75e05c1c20 (patch)
tree220cdb22c2ef13a8c18002d47d6845319d85148f /src/core/file_sys
parentsavedata_factory: Implement savedata creation and don't create dir on open (diff)
downloadyuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar
yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar.gz
yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar.bz2
yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar.lz
yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar.xz
yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.tar.zst
yuzu-02b36b0eb564f60b751398f5e7e89e75e05c1c20.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/sdmc_factory.cpp4
-rw-r--r--src/core/file_sys/sdmc_factory.h3
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() {
return MakeResult<VirtualDir>(dir);
}
+VirtualDir SDMCFactory::GetSDMCContentDirectory() const {
+ return GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents");
+}
+
RegisteredCache* SDMCFactory::GetSDMCContents() const {
return contents.get();
}
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:
~SDMCFactory();
ResultVal<VirtualDir> Open();
+
+ VirtualDir GetSDMCContentDirectory() const;
+
RegisteredCache* GetSDMCContents() const;
private: