Kaynağa Gözat

sdmc_factory: Add accessor for content directory

Zach Hilman 7 yıl önce
ebeveyn
işleme
02b36b0eb5

+ 4 - 0
src/core/file_sys/sdmc_factory.cpp

@@ -22,6 +22,10 @@ ResultVal<VirtualDir> SDMCFactory::Open() {
     return MakeResult<VirtualDir>(dir);
     return MakeResult<VirtualDir>(dir);
 }
 }
 
 
+VirtualDir SDMCFactory::GetSDMCContentDirectory() const {
+    return GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents");
+}
+
 RegisteredCache* SDMCFactory::GetSDMCContents() const {
 RegisteredCache* SDMCFactory::GetSDMCContents() const {
     return contents.get();
     return contents.get();
 }
 }

+ 3 - 0
src/core/file_sys/sdmc_factory.h

@@ -19,6 +19,9 @@ public:
     ~SDMCFactory();
     ~SDMCFactory();
 
 
     ResultVal<VirtualDir> Open();
     ResultVal<VirtualDir> Open();
+
+    VirtualDir GetSDMCContentDirectory() const;
+
     RegisteredCache* GetSDMCContents() const;
     RegisteredCache* GetSDMCContents() const;
 
 
 private:
 private: