mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
This function doesn't alter class state.
This commit is contained in:
		
							parent
							
								
									1371e2fb6a
								
							
						
					
					
						commit
						88ba94e8a2
					
				@ -11,7 +11,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace FileSys {
 | 
					namespace FileSys {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
std::string SaveDataDescriptor::DebugInfo() {
 | 
					std::string SaveDataDescriptor::DebugInfo() const {
 | 
				
			||||||
    return fmt::format("[type={:02X}, title_id={:016X}, user_id={:016X}{:016X}, save_id={:016X}]",
 | 
					    return fmt::format("[type={:02X}, title_id={:016X}, user_id={:016X}{:016X}, save_id={:016X}]",
 | 
				
			||||||
                       static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id);
 | 
					                       static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -37,7 +37,7 @@ struct SaveDataDescriptor {
 | 
				
			|||||||
    u64_le zero_2;
 | 
					    u64_le zero_2;
 | 
				
			||||||
    u64_le zero_3;
 | 
					    u64_le zero_3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::string DebugInfo();
 | 
					    std::string DebugInfo() const;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
static_assert(sizeof(SaveDataDescriptor) == 0x40, "SaveDataDescriptor has incorrect size.");
 | 
					static_assert(sizeof(SaveDataDescriptor) == 0x40, "SaveDataDescriptor has incorrect size.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user