SaveIcon and ReadExtSaveDataIcon

This commit is contained in:
Ada 2024-03-08 13:09:11 +00:00
parent 556b3b8913
commit d4594446bd
No known key found for this signature in database
GPG key ID: 066E56D5C9F4E50D
6 changed files with 110 additions and 18 deletions

View file

@ -22,6 +22,9 @@ public:
std::optional<u32> readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override;
void format(const FSPath& path, const FormatInfo& info) override;
Rust::Result<FormatInfo, HorizonResult> getFormatInfo(const FSPath& path) override;
void clear(const FSPath& path) const;
void saveIcon(const std::vector<u8>& data) const;
Rust::Result<std::vector<u8>, HorizonResult> loadIcon() const;
std::filesystem::path getFormatInfoPath(const FSPath& path) const;
std::filesystem::path getUserDataPath() const;