mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #5471 from vitor-k/misc
Fix some warnings and some small changes
This commit is contained in:
		
						commit
						24086d05bb
					
				
					 35 changed files with 110 additions and 117 deletions
				
			
		|  | @ -15,8 +15,8 @@ | |||
| namespace FileSys::Patch { | ||||
| 
 | ||||
| bool ApplyIpsPatch(const std::vector<u8>& ips, std::vector<u8>& buffer) { | ||||
|     u32 cursor = 5; | ||||
|     u32 patch_length = ips.size() - 3; | ||||
|     std::size_t cursor = 5; | ||||
|     std::size_t patch_length = ips.size() - 3; | ||||
|     std::string ips_header(ips.begin(), ips.begin() + 5); | ||||
| 
 | ||||
|     if (ips_header != "PATCH") { | ||||
|  | @ -30,7 +30,7 @@ bool ApplyIpsPatch(const std::vector<u8>& ips, std::vector<u8>& buffer) { | |||
|         if (eof_check == "EOF") | ||||
|             return false; | ||||
| 
 | ||||
|         u32 offset = ips[cursor] << 16 | ips[cursor + 1] << 8 | ips[cursor + 2]; | ||||
|         std::size_t offset = ips[cursor] << 16 | ips[cursor + 1] << 8 | ips[cursor + 2]; | ||||
|         std::size_t length = ips[cursor + 3] << 8 | ips[cursor + 4]; | ||||
| 
 | ||||
|         // check for an rle record
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue