diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-10-16 16:20:04 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-16 16:20:04 +0200 |
commit | 9d4e6176eb136f8d44d5d62c33219b763648494d (patch) | |
tree | 1e60179171739ee2159e0566ee79f2b164f57175 /src/core | |
parent | savedata_factory: Add support for DeviceSaveData (diff) | |
download | yuzu-9d4e6176eb136f8d44d5d62c33219b763648494d.tar yuzu-9d4e6176eb136f8d44d5d62c33219b763648494d.tar.gz yuzu-9d4e6176eb136f8d44d5d62c33219b763648494d.tar.bz2 yuzu-9d4e6176eb136f8d44d5d62c33219b763648494d.tar.lz yuzu-9d4e6176eb136f8d44d5d62c33219b763648494d.tar.xz yuzu-9d4e6176eb136f8d44d5d62c33219b763648494d.tar.zst yuzu-9d4e6176eb136f8d44d5d62c33219b763648494d.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/file_sys/savedata_factory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp index cb7ec77d9..ef1aaebbb 100644 --- a/src/core/file_sys/savedata_factory.cpp +++ b/src/core/file_sys/savedata_factory.cpp @@ -99,6 +99,9 @@ std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType typ case SaveDataSpaceId::NandUser: out = "/user/"; break; + case SaveDataSpaceId::TemporaryStorage: + out = "/temp/"; + break; default: ASSERT_MSG(false, "Unrecognized SaveDataSpaceId: {:02X}", static_cast<u8>(space)); } @@ -111,7 +114,7 @@ std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType typ 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], + return fmt::format("{}{: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)); |