6 Commits
Author SHA1 Message Date
shawly 2ddbf1a3ee Qt: Disable the Convert context menu entry when conversion is unavailable
The entry now follows the enabled state of the Convert button.

Fixes #13340.
2026-10-07 14:10:14 -04:00
shawly 44732e5adb Qt: Validate renames against the card's own extension
Renaming a card that is not a .ps2 was rejected outright.
2026-10-07 14:10:14 -04:00
shawly a5c33c1548 Qt: Use completeBaseName() when naming a converted Memory Card
lastIndexOf(".ps2") returned -1 into a size_t for cards with any other
extension, corrupting the destination name.
2026-10-07 14:10:14 -04:00
shawly eb3823ac95 Memcard: Add ECC bytes when converting an ECC-less file card to a folder
MMCE cards such as MemCard PRO and SD2PSX store pages without ECC, so the
source is expanded to raw pages and rejected if it is not a whole number.
2026-10-07 14:10:14 -04:00
shawly 161a6cd219 Memcard: Reject accesses to reserved clusters in folder memcards
Reads and writes below the allocation offset or past the allocation end
wrapped the FAT cluster subtraction and read out of bounds.

Fixes #14890.
2026-10-07 14:10:14 -04:00
shawly 874b5ab1e1 Memcard: Fix ECC and spare bytes when converting cards to raw format
Masks the unused bit out of the second line parity byte and leaves the
remaining spare bytes erased (0xff) instead of zeroed.
2026-10-07 14:10:14 -04:00