diff options
author | Frederic L <frederic.laing.development@gmail.com> | 2018-10-28 07:30:29 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-10-28 07:30:29 +0100 |
commit | 72d10ce66ca5dc56bfc4249bff2a9385d871e252 (patch) | |
tree | cbc6eacd2ec55b72b50ff1440e05c3944582d3e0 /src/core/file_sys | |
parent | Merge pull request #1598 from DeeJayBro/delete-directory (diff) | |
download | yuzu-72d10ce66ca5dc56bfc4249bff2a9385d871e252.tar yuzu-72d10ce66ca5dc56bfc4249bff2a9385d871e252.tar.gz yuzu-72d10ce66ca5dc56bfc4249bff2a9385d871e252.tar.bz2 yuzu-72d10ce66ca5dc56bfc4249bff2a9385d871e252.tar.lz yuzu-72d10ce66ca5dc56bfc4249bff2a9385d871e252.tar.xz yuzu-72d10ce66ca5dc56bfc4249bff2a9385d871e252.tar.zst yuzu-72d10ce66ca5dc56bfc4249bff2a9385d871e252.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 1f4928562..cb457b987 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -61,13 +61,12 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { // Game Updates const auto update_tid = GetUpdateTitleID(title_id); const auto update = installed->GetEntry(update_tid, ContentRecordType::Program); - if (update != nullptr) { - if (update->GetStatus() == Loader::ResultStatus::ErrorMissingBKTRBaseRomFS && - update->GetExeFS() != nullptr) { - LOG_INFO(Loader, " ExeFS: Update ({}) applied successfully", - FormatTitleVersion(installed->GetEntryVersion(update_tid).get_value_or(0))); - exefs = update->GetExeFS(); - } + + if (update != nullptr && update->GetExeFS() != nullptr && + update->GetStatus() == Loader::ResultStatus::ErrorMissingBKTRBaseRomFS) { + LOG_INFO(Loader, " ExeFS: Update ({}) applied successfully", + FormatTitleVersion(installed->GetEntryVersion(update_tid).get_value_or(0))); + exefs = update->GetExeFS(); } return exefs; |