mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-22 13:53:40 +00:00
Merge pull request #12203 from liamwhite/crash-fix
set: don't load version nca with null romfs
This commit is contained in:
commit
80c4743754
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue