wire up the new shit to the UI. also more fun shit.

This commit is contained in:
Arisotura
2021-10-26 02:14:38 +02:00
parent b96b0297d4
commit 6cb2faff89
13 changed files with 477 additions and 147 deletions

View File

@ -34,6 +34,12 @@ public:
FATStorage();
~FATStorage();
bool Open();
void Close();
u32 ReadSectors(u32 start, u32 num, u8* data);
u32 WriteSectors(u32 start, u32 num, u8* data);
private:
std::string FilePath;
std::string IndexPath;
@ -46,6 +52,9 @@ private:
static UINT FF_ReadStorage(BYTE* buf, LBA_t sector, UINT num);
static UINT FF_WriteStorage(BYTE* buf, LBA_t sector, UINT num);
static u32 ReadSectorsInternal(FILE* file, u64 filelen, u32 start, u32 num, u8* data);
static u32 WriteSectorsInternal(FILE* file, u64 filelen, u32 start, u32 num, u8* data);
void LoadIndex();
void SaveIndex();