mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	fix:return proper error
This commit is contained in:
		
							parent
							
								
									75cbfeee58
								
							
						
					
					
						commit
						d2182568ad
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -144,11 +144,12 @@ ResultStatus LoadFile(const std::string& filename) { | ||||||
|     case FileType::CCI: |     case FileType::CCI: | ||||||
|     { |     { | ||||||
|         // Load application and RomFS
 |         // Load application and RomFS
 | ||||||
|         if (ResultStatus::Success == app_loader->Load()) { |         ResultStatus result = app_loader->Load(); | ||||||
|  |         if (ResultStatus::Success == result) { | ||||||
|             Service::FS::RegisterArchiveType(std::make_unique<FileSys::ArchiveFactory_RomFS>(*app_loader), Service::FS::ArchiveIdCode::RomFS); |             Service::FS::RegisterArchiveType(std::make_unique<FileSys::ArchiveFactory_RomFS>(*app_loader), Service::FS::ArchiveIdCode::RomFS); | ||||||
|             return ResultStatus::Success; |             return ResultStatus::Success; | ||||||
|         } |         } | ||||||
|         break; |         return result; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // Standard ELF file format...
 |     // Standard ELF file format...
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue