summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar liamwhite2023-11-29 12:34:02 -0500
committerGravatar GitHub2023-11-29 12:34:02 -0500
commit80c4743754eecf7505b00c114e5f072b8a3277b3 (patch)
treee679bb0f20be0666a8b09bcf9eac336145d8e9fb
parentMerge pull request #12201 from Macj0rdan/controller-applet-fix (diff)
parentset: don't load version nca with null romfs (diff)
downloadyuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar.gz
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar.xz
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.zip
Merge pull request #12203 from liamwhite/crash-fix
set: don't load version nca with null romfs
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/set/set_sys.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/set/set_sys.cpp b/src/core/hle/service/set/set_sys.cpp
index f5edfdc8b..48304e6d1 100644
--- a/src/core/hle/service/set/set_sys.cpp
+++ b/src/core/hle/service/set/set_sys.cpp
@@ -34,7 +34,9 @@ Result GetFirmwareVersionImpl(FirmwareVersionFormat& out_firmware, Core::System&
34 nca = bis_system->GetEntry(FirmwareVersionSystemDataId, FileSys::ContentRecordType::Data); 34 nca = bis_system->GetEntry(FirmwareVersionSystemDataId, FileSys::ContentRecordType::Data);
35 } 35 }
36 if (nca) { 36 if (nca) {
37 romfs = FileSys::ExtractRomFS(nca->GetRomFS()); 37 if (auto nca_romfs = nca->GetRomFS(); nca_romfs) {
38 romfs = FileSys::ExtractRomFS(nca_romfs);
39 }
38 } 40 }
39 if (!romfs) { 41 if (!romfs) {
40 romfs = FileSys::ExtractRomFS( 42 romfs = FileSys::ExtractRomFS(