mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	filesys/archive_selfncch: specify endiannes for enum
This commit is contained in:
		
							parent
							
								
									9564b4b292
								
							
						
					
					
						commit
						39feb0610b
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -25,7 +25,7 @@ enum class SelfNCCHFilePathType : u32 { | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| struct SelfNCCHFilePath { | struct SelfNCCHFilePath { | ||||||
|     u32_le type; |     enum_le<SelfNCCHFilePathType> type; | ||||||
|     std::array<char, 8> exefs_filename; |     std::array<char, 8> exefs_filename; | ||||||
| }; | }; | ||||||
| static_assert(sizeof(SelfNCCHFilePath) == 12, "NCCHFilePath has wrong size!"); | static_assert(sizeof(SelfNCCHFilePath) == 12, "NCCHFilePath has wrong size!"); | ||||||
|  | @ -102,7 +102,7 @@ public: | ||||||
|         SelfNCCHFilePath file_path; |         SelfNCCHFilePath file_path; | ||||||
|         std::memcpy(&file_path, binary.data(), sizeof(SelfNCCHFilePath)); |         std::memcpy(&file_path, binary.data(), sizeof(SelfNCCHFilePath)); | ||||||
| 
 | 
 | ||||||
|         switch (static_cast<SelfNCCHFilePathType>(file_path.type)) { |         switch (file_path.type) { | ||||||
|         case SelfNCCHFilePathType::UpdateRomFS: |         case SelfNCCHFilePathType::UpdateRomFS: | ||||||
|             return OpenUpdateRomFS(); |             return OpenUpdateRomFS(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue