aboutsummaryrefslogtreecommitdiff
path: root/src/FATStorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/FATStorage.h')
-rw-r--r--src/FATStorage.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FATStorage.h b/src/FATStorage.h
index 6e348ce..0774df3 100644
--- a/src/FATStorage.h
+++ b/src/FATStorage.h
@@ -58,8 +58,8 @@ public:
bool InjectFile(const std::string& path, u8* data, u32 len);
- u32 ReadSectors(u32 start, u32 num, u8* data);
- u32 WriteSectors(u32 start, u32 num, u8* data);
+ u32 ReadSectors(u32 start, u32 num, u8* data) const;
+ u32 WriteSectors(u32 start, u32 num, const u8* data);
[[nodiscard]] bool IsReadOnly() const noexcept { return ReadOnly; }
private:
@@ -92,7 +92,7 @@ private:
void CleanupDirectory(const std::string& sourcedir, const std::string& path, int level);
bool ImportFile(const std::string& path, std::filesystem::path in);
bool ImportDirectory(const std::string& sourcedir);
- u64 GetDirectorySize(std::filesystem::path sourcedir);
+ u64 GetDirectorySize(std::filesystem::path sourcedir) const;
bool Load(const std::string& filename, u64 size, const std::optional<std::string>& sourcedir);
bool Save();