summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-29 18:34:02 +0100
committerGitHub <noreply@github.com>2023-11-29 18:34:02 +0100
commit80c4743754eecf7505b00c114e5f072b8a3277b3 (patch)
treee679bb0f20be0666a8b09bcf9eac336145d8e9fb /src/core/hle
parentMerge pull request #12201 from Macj0rdan/controller-applet-fix (diff)
parentset: don't load version nca with null romfs (diff)
downloadyuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar.gz
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar.bz2
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar.lz
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar.xz
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.tar.zst
yuzu-80c4743754eecf7505b00c114e5f072b8a3277b3.zip
Diffstat (limited to 'src/core/hle')
-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&
nca = bis_system->GetEntry(FirmwareVersionSystemDataId, FileSys::ContentRecordType::Data);
}
if (nca) {
- romfs = FileSys::ExtractRomFS(nca->GetRomFS());
+ if (auto nca_romfs = nca->GetRomFS(); nca_romfs) {
+ romfs = FileSys::ExtractRomFS(nca_romfs);
+ }
}
if (!romfs) {
romfs = FileSys::ExtractRomFS(