diff options
| author | 2018-07-18 23:50:04 -0400 | |
|---|---|---|
| committer | 2018-07-18 23:50:07 -0400 | |
| commit | 88ba94e8a21bc83ed5a3ae3b903b25388985dcff (patch) | |
| tree | cc8635bd7ebf9f3971c89647bf53f8074b94f27f /src/core | |
| parent | Merge pull request #691 from lioncash/guard (diff) | |
| download | yuzu-88ba94e8a21bc83ed5a3ae3b903b25388985dcff.tar.gz yuzu-88ba94e8a21bc83ed5a3ae3b903b25388985dcff.tar.xz yuzu-88ba94e8a21bc83ed5a3ae3b903b25388985dcff.zip | |
savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
This function doesn't alter class state.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/savedata_factory.cpp | 2 | ||||
| -rw-r--r-- | src/core/file_sys/savedata_factory.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp index 6a53b2b10..dfdca83d6 100644 --- a/src/core/file_sys/savedata_factory.cpp +++ b/src/core/file_sys/savedata_factory.cpp | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | namespace FileSys { | 12 | namespace FileSys { |
| 13 | 13 | ||
| 14 | std::string SaveDataDescriptor::DebugInfo() { | 14 | std::string SaveDataDescriptor::DebugInfo() const { |
| 15 | return fmt::format("[type={:02X}, title_id={:016X}, user_id={:016X}{:016X}, save_id={:016X}]", | 15 | return fmt::format("[type={:02X}, title_id={:016X}, user_id={:016X}{:016X}, save_id={:016X}]", |
| 16 | static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id); | 16 | static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id); |
| 17 | } | 17 | } |
diff --git a/src/core/file_sys/savedata_factory.h b/src/core/file_sys/savedata_factory.h index 53c69876f..e3a578c0f 100644 --- a/src/core/file_sys/savedata_factory.h +++ b/src/core/file_sys/savedata_factory.h | |||
| @@ -37,7 +37,7 @@ struct SaveDataDescriptor { | |||
| 37 | u64_le zero_2; | 37 | u64_le zero_2; |
| 38 | u64_le zero_3; | 38 | u64_le zero_3; |
| 39 | 39 | ||
| 40 | std::string DebugInfo(); | 40 | std::string DebugInfo() const; |
| 41 | }; | 41 | }; |
| 42 | static_assert(sizeof(SaveDataDescriptor) == 0x40, "SaveDataDescriptor has incorrect size."); | 42 | static_assert(sizeof(SaveDataDescriptor) == 0x40, "SaveDataDescriptor has incorrect size."); |
| 43 | 43 | ||