mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-09-13 06:53:22 -06:00
Revert "Fix FF_ReadStorage/FF_WriteStorage callback return value (#2400)"
This reverts commit 18bffde207
.
This commit is contained in:
@ -192,16 +192,14 @@ u64 FATStorage::GetSectorCount() const
|
||||
ff_disk_read_cb FATStorage::FF_ReadStorage() const noexcept
|
||||
{
|
||||
return [this](BYTE* buf, LBA_t sector, UINT num) {
|
||||
u32 res = ReadSectorsInternal(File, FileSize, sector, num, buf);
|
||||
return res / 0x200;
|
||||
return ReadSectorsInternal(File, FileSize, sector, num, buf);
|
||||
};
|
||||
}
|
||||
|
||||
ff_disk_write_cb FATStorage::FF_WriteStorage() const noexcept
|
||||
{
|
||||
return [this](const BYTE* buf, LBA_t sector, UINT num) {
|
||||
u32 res = WriteSectorsInternal(File, FileSize, sector, num, buf);
|
||||
return res / 0x200;
|
||||
return WriteSectorsInternal(File, FileSize, sector, num, buf);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user