Skip to content

Commit

Permalink
Revert memory card write simplification for Wii
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Feb 9, 2024
1 parent a0d6806 commit 7f88a7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gx/fileio/file_slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f88a7c

Please sign in to comment.