mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-25 10:41:49 +01:00
Revert memory card write simplification for Wii
This commit is contained in:
parent
6170379f59
commit
378aa209c6
@ -808,7 +808,16 @@ int slot_save(int slot, int device)
|
||||
CARD_SetStatus(device, CardFile.filenum, &CardStatus);
|
||||
|
||||
/* Write file sectors */
|
||||
#ifdef HW_RVL
|
||||
while (filesize > 0)
|
||||
{
|
||||
CARD_Write(&CardFile, &out[done], SectorSize, done);
|
||||
filesize -= SectorSize;
|
||||
done += SectorSize;
|
||||
}
|
||||
#else
|
||||
CARD_Write(&CardFile, &out[done], filesize, done);
|
||||
#endif
|
||||
|
||||
/* Close file */
|
||||
CARD_Close(&CardFile);
|
||||
|
Loading…
Reference in New Issue
Block a user