summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-19 17:46:15 +0200
committerGitHub <noreply@github.com>2018-07-19 17:46:15 +0200
commitf1d7486eac17cc01bcd6e355c1cae869e7e8cf84 (patch)
treed8ae1e68ae06cdaa8bce58c86872ebaec16873de
parentMerge pull request #702 from lioncash/initialize (diff)
parentsavedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function (diff)
downloadyuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar
yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar.gz
yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar.bz2
yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar.lz
yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar.xz
yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.tar.zst
yuzu-f1d7486eac17cc01bcd6e355c1cae869e7e8cf84.zip
-rw-r--r--src/core/file_sys/savedata_factory.cpp2
-rw-r--r--src/core/file_sys/savedata_factory.h2
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 @@
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);
}
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 {
u64_le zero_2;
u64_le zero_3;
- std::string DebugInfo();
+ std::string DebugInfo() const;
};
static_assert(sizeof(SaveDataDescriptor) == 0x40, "SaveDataDescriptor has incorrect size.");