aboutsummaryrefslogtreecommitdiff
path: root/src/FATStorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/FATStorage.h')
-rw-r--r--src/FATStorage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FATStorage.h b/src/FATStorage.h
index 0774df3..1e89b76 100644
--- a/src/FATStorage.h
+++ b/src/FATStorage.h
@@ -57,10 +57,13 @@ public:
~FATStorage();
bool InjectFile(const std::string& path, u8* data, u32 len);
+ u32 ReadFile(const std::string& path, u32 start, u32 len, 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; }
+ u64 GetSectorCount() const;
private:
std::string FilePath;