aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/file_sys/archive_romfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_sys/archive_romfs.h')
-rw-r--r--src/core/file_sys/archive_romfs.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h
index ae2344e8..0649dde9 100644
--- a/src/core/file_sys/archive_romfs.h
+++ b/src/core/file_sys/archive_romfs.h
@@ -26,7 +26,7 @@ public:
* Get the IdCode of the archive (e.g. RomFS, SaveData, etc.)
* @return IdCode of the archive
*/
- IdCode GetIdCode() const override { return IdCode::RomFS; };
+ IdCode GetIdCode() const override { return IdCode::RomFS; }
/**
* Open a file specified by its path, using the specified mode
@@ -34,21 +34,35 @@ public:
* @param mode Mode to open the file with
* @return Opened file, or nullptr
*/
- std::unique_ptr<File> OpenFile(const std::string& path, const Mode mode) const override;
+ std::unique_ptr<File> OpenFile(const Path& path, const Mode mode) const override;
+
+ /**
+ * Delete a file specified by its path
+ * @param path Path relative to the archive
+ * @return Whether the file could be deleted
+ */
+ bool DeleteFile(const FileSys::Path& path) const override;
+
+ /**
+ * Delete a directory specified by its path
+ * @param path Path relative to the archive
+ * @return Whether the directory could be deleted
+ */
+ bool DeleteDirectory(const FileSys::Path& path) const override;
/**
* Create a directory specified by its path
* @param path Path relative to the archive
* @return Whether the directory could be created
*/
- bool CreateDirectory(const std::string& path) const override;
+ bool CreateDirectory(const Path& path) const override;
/**
* Open a directory specified by its path
* @param path Path relative to the archive
* @return Opened directory, or nullptr
*/
- std::unique_ptr<Directory> OpenDirectory(const std::string& path) const override;
+ std::unique_ptr<Directory> OpenDirectory(const Path& path) const override;
/**
* Read data from the archive
@@ -74,7 +88,7 @@ public:
* @return Size of the archive in bytes
*/
size_t GetSize() const override;
-
+
/**
* Set the size of the archive in bytes
*/