Make PSX cards appear as Pocketstation devices. (#2208)

Fixes memcard access in Final Fantasy VIII, and likely in other PSX
games supporting the Pocketstation peripheral. This makes inserted PSX cards show up as PocketStation devices in the PS2 browser, which is okay for now.
This commit is contained in:
RedPanda4552 2017-12-10 11:03:26 -05:00 committed by Robert Neumann
parent 4558dd9e28
commit 5fec900861
1 changed files with 8 additions and 5 deletions

View File

@ -685,6 +685,7 @@ SIO_WRITE sioWriteMemcard(u8 data)
case 0x52: // PSX 'R'ead
case 0x53: // PSX 'S'tate
case 0x57: // PSX 'W'rite
case 0x58: // PSX Pocketstation
siomode = SIO_DUMMY;
break;
@ -746,16 +747,18 @@ SIO_WRITE sioWriteMemcardPSX(u8 data)
case 0x52: // PSX 'R'ead / Probe
case 0x57: // PSX 'W'rite
case 0x58: // POCKETSTATION!! Grrrr // Lots of love to the PS2DEV/ps2sdk
sio.buf[1] = 0x00; //mcd->FLAG;
sio.buf[2] = 0x5A; // probe end, success "0x5A"
sio.buf[3] = 0x5D;
sio.buf[4] = 0x00;
break;
case 0x58: // POCKETSTATION!! Grrrr // Lots of love to the PS2DEV/ps2sdk
DEVICE_UNPLUGGED(); // Check is for 0x01000 on stat
siomode = SIO_DUMMY;
break;
// Old handing for Pocketstation, effectively discarded the calls.
// Keeping it around for reference.
//case 0x58: // POCKETSTATION!! Grrrr // Lots of love to the PS2DEV/ps2sdk
// DEVICE_UNPLUGGED(); // Check is for 0x01000 on stat
// siomode = SIO_DUMMY;
// break;
default:
//printf("%s cmd: %02X??\n", __FUNCTION__, data);