diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-06-15 03:41:25 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-06-28 16:08:07 +0200 |
commit | 1664c74a6c5a02640bb5f2204b661f94e825d906 (patch) | |
tree | 76e64c8defb6dc833a1e419aacc7f04370f5354d /src/core/file_sys/sdmc_factory.cpp | |
parent | yuzu qt: Add option to dump to SDMC directory (diff) | |
download | yuzu-1664c74a6c5a02640bb5f2204b661f94e825d906.tar yuzu-1664c74a6c5a02640bb5f2204b661f94e825d906.tar.gz yuzu-1664c74a6c5a02640bb5f2204b661f94e825d906.tar.bz2 yuzu-1664c74a6c5a02640bb5f2204b661f94e825d906.tar.lz yuzu-1664c74a6c5a02640bb5f2204b661f94e825d906.tar.xz yuzu-1664c74a6c5a02640bb5f2204b661f94e825d906.tar.zst yuzu-1664c74a6c5a02640bb5f2204b661f94e825d906.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/sdmc_factory.cpp | 7 |
1 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 cb56d8f2d..f4dba8f16 100644 --- a/src/core/file_sys/sdmc_factory.cpp +++ b/src/core/file_sys/sdmc_factory.cpp @@ -27,6 +27,13 @@ ResultVal<VirtualDir> SDMCFactory::Open() const { return MakeResult<VirtualDir>(dir); } +VirtualDir SDMCFactory::GetSDMCModificationLoadRoot(u64 title_id) const { + // LayeredFS doesn't work on updates and title id-less homebrew + if (title_id == 0 || (title_id & 0xFFF) == 0x800) + return nullptr; + return GetOrCreateDirectoryRelative(dir, fmt::format("/atmosphere/contents/{:016X}", title_id)); +} + VirtualDir SDMCFactory::GetSDMCContentDirectory() const { return GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents"); } |