summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-16 16:19:21 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-16 16:19:21 +0200
commit74890cf2da069618b66b9e8b29f7c67aebc545c7 (patch)
tree740c495b744d2d02e023a61e8714564f1ab408c0 /src
parentMerge pull request #1473 from lioncash/cmake (diff)
downloadyuzu-74890cf2da069618b66b9e8b29f7c67aebc545c7.tar
yuzu-74890cf2da069618b66b9e8b29f7c67aebc545c7.tar.gz
yuzu-74890cf2da069618b66b9e8b29f7c67aebc545c7.tar.bz2
yuzu-74890cf2da069618b66b9e8b29f7c67aebc545c7.tar.lz
yuzu-74890cf2da069618b66b9e8b29f7c67aebc545c7.tar.xz
yuzu-74890cf2da069618b66b9e8b29f7c67aebc545c7.tar.zst
yuzu-74890cf2da069618b66b9e8b29f7c67aebc545c7.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/savedata_factory.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp
index 47f2ab9e0..cb7ec77d9 100644
--- a/src/core/file_sys/savedata_factory.cpp
+++ b/src/core/file_sys/savedata_factory.cpp
@@ -51,6 +51,13 @@ ResultVal<VirtualDir> SaveDataFactory::Open(SaveDataSpaceId space, SaveDataDescr
meta.title_id);
}
+ if (meta.type == SaveDataType::DeviceSaveData && meta.user_id != u128{0, 0}) {
+ LOG_WARNING(Service_FS,
+ "Possibly incorrect SaveDataDescriptor, type is DeviceSaveData but user_id is "
+ "non-zero ({:016X}{:016X})",
+ meta.user_id[1], meta.user_id[0]);
+ }
+
std::string save_directory =
GetFullPath(space, meta.type, meta.title_id, meta.user_id, meta.save_id);
@@ -100,6 +107,7 @@ std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType typ
case SaveDataType::SystemSaveData:
return fmt::format("{}save/{:016X}/{:016X}{:016X}", out, save_id, user_id[1], user_id[0]);
case SaveDataType::SaveData:
+ case SaveDataType::DeviceSaveData:
return fmt::format("{}save/{:016X}/{:016X}{:016X}/{:016X}", out, 0, user_id[1], user_id[0],
title_id);
case SaveDataType::TemporaryStorage: