yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

set: don't load version nca with null romfs

This commit is contained in:
Liam 2023-11-27 15:20:18 -05:00
parent c7649a0cdb
commit fd29227bc4
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ Result GetFirmwareVersionImpl(FirmwareVersionFormat& out_firmware, Core::System&
nca = bis_system->GetEntry(FirmwareVersionSystemDataId, FileSys::ContentRecordType::Data); nca = bis_system->GetEntry(FirmwareVersionSystemDataId, FileSys::ContentRecordType::Data);
} }
if (nca) { if (nca) {
romfs = FileSys::ExtractRomFS(nca->GetRomFS()); if (auto nca_romfs = nca->GetRomFS(); nca_romfs) {
romfs = FileSys::ExtractRomFS(nca_romfs);
}
} }
if (!romfs) { if (!romfs) {
romfs = FileSys::ExtractRomFS( romfs = FileSys::ExtractRomFS(