summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/archive_extsavedata.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-12-28 19:51:44 +0100
committerSubv <subv2112@gmail.com>2016-03-20 20:30:01 +0100
commitd26c6b3212ed36970410814593ee5ec082b1d95a (patch)
tree3b03822761cbec083ea57719b0c8a9df530c4899 /src/core/file_sys/archive_extsavedata.h
parentHLE/FS: Don't return an error when deleting the ExtSaveData if it does not exist. (diff)
downloadyuzu-d26c6b3212ed36970410814593ee5ec082b1d95a.tar
yuzu-d26c6b3212ed36970410814593ee5ec082b1d95a.tar.gz
yuzu-d26c6b3212ed36970410814593ee5ec082b1d95a.tar.bz2
yuzu-d26c6b3212ed36970410814593ee5ec082b1d95a.tar.lz
yuzu-d26c6b3212ed36970410814593ee5ec082b1d95a.tar.xz
yuzu-d26c6b3212ed36970410814593ee5ec082b1d95a.tar.zst
yuzu-d26c6b3212ed36970410814593ee5ec082b1d95a.zip
Diffstat (limited to 'src/core/file_sys/archive_extsavedata.h')
-rw-r--r--src/core/file_sys/archive_extsavedata.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/file_sys/archive_extsavedata.h b/src/core/file_sys/archive_extsavedata.h
index ec8d770fc..48e092ee7 100644
--- a/src/core/file_sys/archive_extsavedata.h
+++ b/src/core/file_sys/archive_extsavedata.h
@@ -31,10 +31,19 @@ public:
std::string GetName() const override { return "ExtSaveData"; }
ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override;
- ResultCode Format(const Path& path) override;
+ ResultCode Format(const Path& path, const FileSys::ArchiveFormatInfo& format_info) override;
+ ResultVal<ArchiveFormatInfo> GetFormatInfo(const Path& path) const override;
const std::string& GetMountPoint() const { return mount_point; }
+ /*
+ * Writes the SMDH icon of the ExtSaveData to file
+ * @param path Path of this ExtSaveData
+ * @param icon_data Binary data of the icon
+ * @param icon_size Size of the icon data
+ */
+ void WriteIcon(const Path& path, u8* icon_data, u32 icon_size);
+
private:
/**
* This holds the full directory path for this archive, it is only set after a successful call