summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/set
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-11-27 21:20:18 +0100
committerLiam <byteslice@airmail.cc>2023-11-27 21:20:18 +0100
commitfd29227bc4f84417785d409ee704872707d9ec32 (patch)
tree335d9fdcb8e4380ff37863e9f5b696df5c9454b7 /src/core/hle/service/set
parentMerge pull request #12183 from german77/justmii (diff)
downloadyuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar
yuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar.gz
yuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar.bz2
yuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar.lz
yuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar.xz
yuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar.zst
yuzu-fd29227bc4f84417785d409ee704872707d9ec32.zip
Diffstat (limited to 'src/core/hle/service/set')
-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(