Permalink
Browse files

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.
  • Loading branch information...
RedPanda4552 authored and ramapcsx2 committed Dec 10, 2017
1 parent 4558dd9 commit 5fec9008618a670590b0c9838ab60c428ece40c7
Showing with 8 additions and 5 deletions.
  1. +8 −5 pcsx2/Sio.cpp
View
@@ -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);

0 comments on commit 5fec900

Please sign in to comment.