diff options
Diffstat (limited to 'src/FATStorage.h')
-rw-r--r-- | src/FATStorage.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/FATStorage.h b/src/FATStorage.h index 250f023..6b9beb5 100644 --- a/src/FATStorage.h +++ b/src/FATStorage.h @@ -24,6 +24,7 @@ #include <map> #include <filesystem> +#include "Platform.h" #include "types.h" #include "fatfs/ff.h" @@ -48,16 +49,16 @@ private: std::string SourceDir; bool ReadOnly; - FILE* File; + Platform::FileHandle* File; u64 FileSize; - static FILE* FF_File; + static Platform::FileHandle* FF_File; static u64 FF_FileSize; 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); + static u32 ReadSectorsInternal(Platform::FileHandle* file, u64 filelen, u32 start, u32 num, u8* data); + static u32 WriteSectorsInternal(Platform::FileHandle* file, u64 filelen, u32 start, u32 num, u8* data); void LoadIndex(); void SaveIndex(); |