summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-09-19 15:06:03 +0200
committerZach Hilman <zachhilman@gmail.com>2018-09-19 15:06:22 +0200
commitdfaea55be593a567dde2a3259f634c6d7ed91c32 (patch)
tree134bd1594a67cfe58c69466949766fef31beff7f /src/core/file_sys
parentMerge pull request #1273 from Subv/ld_sizes (diff)
downloadyuzu-dfaea55be593a567dde2a3259f634c6d7ed91c32.tar
yuzu-dfaea55be593a567dde2a3259f634c6d7ed91c32.tar.gz
yuzu-dfaea55be593a567dde2a3259f634c6d7ed91c32.tar.bz2
yuzu-dfaea55be593a567dde2a3259f634c6d7ed91c32.tar.lz
yuzu-dfaea55be593a567dde2a3259f634c6d7ed91c32.tar.xz
yuzu-dfaea55be593a567dde2a3259f634c6d7ed91c32.tar.zst
yuzu-dfaea55be593a567dde2a3259f634c6d7ed91c32.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/savedata_factory.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp
index e437d34e5..cddb014fc 100644
--- a/src/core/file_sys/savedata_factory.cpp
+++ b/src/core/file_sys/savedata_factory.cpp
@@ -85,10 +85,10 @@ std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType typ
switch (space) {
case SaveDataSpaceId::NandSystem:
- out = "/system/save/";
+ out = "/system/";
break;
case SaveDataSpaceId::NandUser:
- out = "/user/save/";
+ out = "/user/";
break;
default:
ASSERT_MSG(false, "Unrecognized SaveDataSpaceId: {:02X}", static_cast<u8>(space));
@@ -96,9 +96,12 @@ std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType typ
switch (type) {
case SaveDataType::SystemSaveData:
- return fmt::format("{}{:016X}/{:016X}{:016X}", out, save_id, user_id[1], user_id[0]);
+ return fmt::format("{}save/{:016X}/{:016X}{:016X}", out, save_id, user_id[1], user_id[0]);
case SaveDataType::SaveData:
- return fmt::format("{}{:016X}/{:016X}{:016X}/{:016X}", out, 0, user_id[1], user_id[0],
+ return fmt::format("{}save/{:016X}/{:016X}{:016X}/{:016X}", out, 0, user_id[1], user_id[0],
+ title_id);
+ case SaveDataType::TemporaryStorage:
+ return fmt::format("{}temp/{:016X}/{:016X}{:016X}/{:016X}", out, 0, user_id[1], user_id[0],
title_id);
default:
ASSERT_MSG(false, "Unrecognized SaveDataType: {:02X}", static_cast<u8>(type));