mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-31 23:06:43 +08:00 
			
		
		
		
	set: don't load version nca with null romfs
This commit is contained in:
		
							parent
							
								
									c7649a0cdb
								
							
						
					
					
						commit
						fd29227bc4
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user