diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-04-10 18:32:19 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-21 22:43:10 +0200 |
commit | 0084cceb203544e306d7089bc81d81e20e1ddafa (patch) | |
tree | bd05307331b5d56a146af9c5097cdfff9ffeca8c /src/core/file_sys | |
parent | sdmc_factory: Add accessor for content directory (diff) | |
download | yuzu-0084cceb203544e306d7089bc81d81e20e1ddafa.tar yuzu-0084cceb203544e306d7089bc81d81e20e1ddafa.tar.gz yuzu-0084cceb203544e306d7089bc81d81e20e1ddafa.tar.bz2 yuzu-0084cceb203544e306d7089bc81d81e20e1ddafa.tar.lz yuzu-0084cceb203544e306d7089bc81d81e20e1ddafa.tar.xz yuzu-0084cceb203544e306d7089bc81d81e20e1ddafa.tar.zst yuzu-0084cceb203544e306d7089bc81d81e20e1ddafa.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/sdmc_factory.cpp | 8 | ||||
-rw-r--r-- | src/core/file_sys/sdmc_factory.h | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/core/file_sys/sdmc_factory.cpp b/src/core/file_sys/sdmc_factory.cpp index e5668d70e..d63d960ce 100644 --- a/src/core/file_sys/sdmc_factory.cpp +++ b/src/core/file_sys/sdmc_factory.cpp @@ -14,7 +14,9 @@ SDMCFactory::SDMCFactory(VirtualDir dir_) GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents/registered"), [](const VirtualFile& file, const NcaID& id) { return NAX{file, id}.GetDecrypted(); - })) {} + })), + placeholder(std::make_unique<PlaceholderCache>( + GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents/placehld"))) {} SDMCFactory::~SDMCFactory() = default; @@ -30,4 +32,8 @@ RegisteredCache* SDMCFactory::GetSDMCContents() const { return contents.get(); } +PlaceholderCache* SDMCFactory::GetSDMCPlaceholder() const { + return placeholder.get(); +} + } // namespace FileSys diff --git a/src/core/file_sys/sdmc_factory.h b/src/core/file_sys/sdmc_factory.h index a98e44f85..2ef5909a6 100644 --- a/src/core/file_sys/sdmc_factory.h +++ b/src/core/file_sys/sdmc_factory.h @@ -11,6 +11,7 @@ namespace FileSys { class RegisteredCache; +class PlaceholderCache; /// File system interface to the SDCard archive class SDMCFactory { @@ -23,11 +24,13 @@ public: VirtualDir GetSDMCContentDirectory() const; RegisteredCache* GetSDMCContents() const; + PlaceholderCache* GetSDMCPlaceholder() const; private: VirtualDir dir; std::unique_ptr<RegisteredCache> contents; + std::unique_ptr<PlaceholderCache> placeholder; }; } // namespace FileSys |