Revert memory card write simplification for Wii

This commit is contained in:
Extrems 2024-02-09 17:59:47 -05:00
parent 6170379f59
commit 378aa209c6

View File

@ -808,7 +808,16 @@ int slot_save(int slot, int device)
CARD_SetStatus(device, CardFile.filenum, &CardStatus); CARD_SetStatus(device, CardFile.filenum, &CardStatus);
/* Write file sectors */ /* 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); CARD_Write(&CardFile, &out[done], filesize, done);
#endif
/* Close file */ /* Close file */
CARD_Close(&CardFile); CARD_Close(&CardFile);