diff options
Diffstat (limited to 'src')
| -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( |