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