diff options
| author | 2023-11-27 15:20:18 -0500 | |
|---|---|---|
| committer | 2023-11-27 15:20:18 -0500 | |
| commit | fd29227bc4f84417785d409ee704872707d9ec32 (patch) | |
| tree | 335d9fdcb8e4380ff37863e9f5b696df5c9454b7 | |
| parent | Merge pull request #12183 from german77/justmii (diff) | |
| download | yuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar.gz yuzu-fd29227bc4f84417785d409ee704872707d9ec32.tar.xz yuzu-fd29227bc4f84417785d409ee704872707d9ec32.zip | |
set: don't load version nca with null romfs
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/set/set_sys.cpp | 4 |
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( |