summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/patch_manager.cpp13
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 {
61 // Game Updates 61 // Game Updates
62 const auto update_tid = GetUpdateTitleID(title_id); 62 const auto update_tid = GetUpdateTitleID(title_id);
63 const auto update = installed->GetEntry(update_tid, ContentRecordType::Program); 63 const auto update = installed->GetEntry(update_tid, ContentRecordType::Program);
64 if (update != nullptr) { 64
65 if (update->GetStatus() == Loader::ResultStatus::ErrorMissingBKTRBaseRomFS && 65 if (update != nullptr && update->GetExeFS() != nullptr &&
66 update->GetExeFS() != nullptr) { 66 update->GetStatus() == Loader::ResultStatus::ErrorMissingBKTRBaseRomFS) {
67 LOG_INFO(Loader, " ExeFS: Update ({}) applied successfully", 67 LOG_INFO(Loader, " ExeFS: Update ({}) applied successfully",
68 FormatTitleVersion(installed->GetEntryVersion(update_tid).get_value_or(0))); 68 FormatTitleVersion(installed->GetEntryVersion(update_tid).get_value_or(0)));
69 exefs = update->GetExeFS(); 69 exefs = update->GetExeFS();
70 }
71 } 70 }
72 71
73 return exefs; 72 return exefs;