diff options
| author | 2018-10-06 23:58:24 -0400 | |
|---|---|---|
| committer | 2018-10-06 23:58:24 -0400 | |
| commit | 6e4d2e672d1083f29186ea0ddcb33cd634e360e3 (patch) | |
| tree | cbd20aab8705f8efac340c509ca71b08865a1417 /src/core/hle | |
| parent | Merge pull request #1446 from bunnei/fast_fermi_copy (diff) | |
| parent | romfs_factory: Extract packed update setter to new function (diff) | |
| download | yuzu-6e4d2e672d1083f29186ea0ddcb33cd634e360e3.tar.gz yuzu-6e4d2e672d1083f29186ea0ddcb33cd634e360e3.tar.xz yuzu-6e4d2e672d1083f29186ea0ddcb33cd634e360e3.zip | |
Merge pull request #1396 from DarkLordZach/packed-updates
loader: Add support for packed updates
Diffstat (limited to 'src/core/hle')
| -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 aed2abb71..439e62d27 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp | |||
| @@ -264,6 +264,15 @@ ResultCode RegisterBIS(std::unique_ptr<FileSys::BISFactory>&& factory) { | |||
| 264 | return RESULT_SUCCESS; | 264 | return RESULT_SUCCESS; |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | void SetPackedUpdate(FileSys::VirtualFile update_raw) { | ||
| 268 | LOG_TRACE(Service_FS, "Setting packed update for romfs"); | ||
| 269 | |||
| 270 | if (romfs_factory == nullptr) | ||
| 271 | return; | ||
| 272 | |||
| 273 | romfs_factory->SetPackedUpdate(std::move(update_raw)); | ||
| 274 | } | ||
| 275 | |||
| 267 | ResultVal<FileSys::VirtualFile> OpenRomFSCurrentProcess() { | 276 | ResultVal<FileSys::VirtualFile> OpenRomFSCurrentProcess() { |
| 268 | LOG_TRACE(Service_FS, "Opening RomFS for current process"); | 277 | LOG_TRACE(Service_FS, "Opening RomFS for current process"); |
| 269 | 278 | ||
diff --git a/src/core/hle/service/filesystem/filesystem.h b/src/core/hle/service/filesystem/filesystem.h index 7039a2247..53b01bb01 100644 --- a/src/core/hle/service/filesystem/filesystem.h +++ b/src/core/hle/service/filesystem/filesystem.h | |||
| @@ -39,6 +39,7 @@ ResultCode RegisterSaveData(std::unique_ptr<FileSys::SaveDataFactory>&& factory) | |||
| 39 | ResultCode RegisterSDMC(std::unique_ptr<FileSys::SDMCFactory>&& factory); | 39 | ResultCode RegisterSDMC(std::unique_ptr<FileSys::SDMCFactory>&& factory); |
| 40 | ResultCode RegisterBIS(std::unique_ptr<FileSys::BISFactory>&& factory); | 40 | ResultCode RegisterBIS(std::unique_ptr<FileSys::BISFactory>&& factory); |
| 41 | 41 | ||
| 42 | void SetPackedUpdate(FileSys::VirtualFile update_raw); | ||
| 42 | ResultVal<FileSys::VirtualFile> OpenRomFSCurrentProcess(); | 43 | ResultVal<FileSys::VirtualFile> OpenRomFSCurrentProcess(); |
| 43 | ResultVal<FileSys::VirtualFile> OpenRomFS(u64 title_id, FileSys::StorageId storage_id, | 44 | ResultVal<FileSys::VirtualFile> OpenRomFS(u64 title_id, FileSys::StorageId storage_id, |
| 44 | FileSys::ContentRecordType type); | 45 | FileSys::ContentRecordType type); |