diff options
| author | 2018-07-19 08:46:15 -0700 | |
|---|---|---|
| committer | 2018-07-19 08:46:15 -0700 | |
| commit | f1d7486eac17cc01bcd6e355c1cae869e7e8cf84 (patch) | |
| tree | d8ae1e68ae06cdaa8bce58c86872ebaec16873de /src | |
| parent | Merge pull request #702 from lioncash/initialize (diff) | |
| parent | savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const memb... (diff) | |
| download | yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar.gz yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar.xz yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.zip | |
Merge pull request #703 from lioncash/const
savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
Diffstat (limited to 'src')
| -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 | ||