yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #703 from lioncash/const

savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
This commit is contained in:
bunnei 2018-07-19 08:46:15 -07:00 committed by GitHub
commit f1d7486eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
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}]",
static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id);
}

View File

@ -37,7 +37,7 @@ struct SaveDataDescriptor {
u64_le zero_2;
u64_le zero_3;
std::string DebugInfo();
std::string DebugInfo() const;
};
static_assert(sizeof(SaveDataDescriptor) == 0x40, "SaveDataDescriptor has incorrect size.");