mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	file_sys/card_image: Get rid of a magic number
We can just use the size of the array to dehardcode it.
This commit is contained in:
		
							parent
							
								
									bf35138d1d
								
							
						
					
					
						commit
						825ffd7b1f
					
				| @ -27,7 +27,7 @@ constexpr std::array partition_names{ | |||||||
| 
 | 
 | ||||||
| XCI::XCI(VirtualFile file_) | XCI::XCI(VirtualFile file_) | ||||||
|     : file(std::move(file_)), program_nca_status{Loader::ResultStatus::ErrorXCIMissingProgramNCA}, |     : file(std::move(file_)), program_nca_status{Loader::ResultStatus::ErrorXCIMissingProgramNCA}, | ||||||
|       partitions(0x4) { |       partitions(partition_names.size()) { | ||||||
|     if (file->ReadObject(&header) != sizeof(GamecardHeader)) { |     if (file->ReadObject(&header) != sizeof(GamecardHeader)) { | ||||||
|         status = Loader::ResultStatus::ErrorBadXCIHeader; |         status = Loader::ResultStatus::ErrorBadXCIHeader; | ||||||
|         return; |         return; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Lioncash
						Lioncash