diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-27 17:04:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-27 17:04:05 +0100 |
commit | c4515d305b80556fc9b316805a50e2303304a457 (patch) | |
tree | 9ef68f80306b0bfbd17e84e70c44f3656c057fc5 /src/core/file_sys/savedata_factory.h | |
parent | Merge pull request #1946 from lioncash/decl (diff) | |
parent | am: Implement GetSaveDataSize and ExtendSaveData (diff) | |
download | yuzu-c4515d305b80556fc9b316805a50e2303304a457.tar yuzu-c4515d305b80556fc9b316805a50e2303304a457.tar.gz yuzu-c4515d305b80556fc9b316805a50e2303304a457.tar.bz2 yuzu-c4515d305b80556fc9b316805a50e2303304a457.tar.lz yuzu-c4515d305b80556fc9b316805a50e2303304a457.tar.xz yuzu-c4515d305b80556fc9b316805a50e2303304a457.tar.zst yuzu-c4515d305b80556fc9b316805a50e2303304a457.zip |
Diffstat (limited to 'src/core/file_sys/savedata_factory.h')
-rw-r--r-- | src/core/file_sys/savedata_factory.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file_sys/savedata_factory.h b/src/core/file_sys/savedata_factory.h index bd4919610..3a1caf292 100644 --- a/src/core/file_sys/savedata_factory.h +++ b/src/core/file_sys/savedata_factory.h @@ -46,6 +46,11 @@ struct SaveDataDescriptor { }; static_assert(sizeof(SaveDataDescriptor) == 0x40, "SaveDataDescriptor has incorrect size."); +struct SaveDataSize { + u64 normal; + u64 journal; +}; + /// File system interface to the SaveData archive class SaveDataFactory { public: @@ -60,6 +65,9 @@ public: static std::string GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id, u128 user_id, u64 save_id); + SaveDataSize ReadSaveDataSize(SaveDataType type, u64 title_id, u128 user_id) const; + void WriteSaveDataSize(SaveDataType type, u64 title_id, u128 user_id, SaveDataSize new_value); + private: VirtualDir dir; }; |