mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
successfully call f_mkfs(). it's a start I guess.
This commit is contained in:
@ -19,8 +19,28 @@
|
||||
#ifndef FATSTORAGE_H
|
||||
#define FATSTORAGE_H
|
||||
|
||||
#include "types.h"
|
||||
#include <stdio.h>
|
||||
|
||||
//
|
||||
#include "types.h"
|
||||
#include "fatfs/ff.h"
|
||||
|
||||
|
||||
class FATStorage
|
||||
{
|
||||
public:
|
||||
FATStorage();
|
||||
~FATStorage();
|
||||
|
||||
private:
|
||||
FILE* file;
|
||||
u64 filesize;
|
||||
|
||||
static FILE* 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);
|
||||
|
||||
bool Build(const char* sourcedir, u64 size, const char* filename);
|
||||
};
|
||||
|
||||
#endif // FATSTORAGE_H
|
||||
|
Reference in New Issue
Block a user