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/hle/service/filesystem | |
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 'src/core/hle/service/filesystem')
-rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 9 | ||||
-rw-r--r-- | src/core/hle/service/filesystem/filesystem.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index 3c16fe6c7..9191f19fe 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp @@ -703,6 +703,15 @@ FileSys::VirtualDir FileSystemController::GetModificationLoadRoot(u64 title_id) return bis_factory->GetModificationLoadRoot(title_id); } +FileSys::VirtualDir FileSystemController::GetSDMCModificationLoadRoot(u64 title_id) const { + LOG_TRACE(Service_FS, "Opening SDMC mod load root for tid={:016X}", title_id); + + if (sdmc_factory == nullptr) + return nullptr; + + return sdmc_factory->GetSDMCModificationLoadRoot(title_id); +} + FileSys::VirtualDir FileSystemController::GetModificationDumpRoot(u64 title_id) const { LOG_TRACE(Service_FS, "Opening mod dump root for tid={:016X}", title_id); diff --git a/src/core/hle/service/filesystem/filesystem.h b/src/core/hle/service/filesystem/filesystem.h index b6b1b9220..d387af3cb 100644 --- a/src/core/hle/service/filesystem/filesystem.h +++ b/src/core/hle/service/filesystem/filesystem.h @@ -115,6 +115,7 @@ public: FileSys::VirtualDir GetContentDirectory(ContentStorageId id) const; FileSys::VirtualDir GetImageDirectory(ImageDirectoryId id) const; + FileSys::VirtualDir GetSDMCModificationLoadRoot(u64 title_id) const; FileSys::VirtualDir GetModificationLoadRoot(u64 title_id) const; FileSys::VirtualDir GetModificationDumpRoot(u64 title_id) const; |