successfully call f_mkfs(). it's a start I guess.

This commit is contained in:
Arisotura
2021-09-12 04:32:12 +02:00
parent b841f24996
commit 529620a49e
7 changed files with 157 additions and 7 deletions

View File

@ -1164,10 +1164,12 @@ u8 CartRetailBT::SPIWrite(u8 val, u32 pos, bool last)
CartHomebrew::CartHomebrew(u8* rom, u32 len, u32 chipid) : CartCommon(rom, len, chipid)
{
test = nullptr;
if (Config::DLDIEnable)
{
ApplyDLDIPatch(melonDLDI, sizeof(melonDLDI));
SDFile = Platform::OpenLocalFile(Config::DLDISDPath, "r+b");
test = new FATStorage();
}
else
SDFile = nullptr;
@ -1176,6 +1178,7 @@ CartHomebrew::CartHomebrew(u8* rom, u32 len, u32 chipid) : CartCommon(rom, len,
CartHomebrew::~CartHomebrew()
{
if (SDFile) fclose(SDFile);
if (test) delete test;
}
void CartHomebrew::Reset()