mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 11:11:48 +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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user