diff options
| author | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-11-28 11:34:19 +0000 |
|---|---|---|
| committer | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-11-28 11:34:19 +0000 |
| commit | bfc8e12c52df1f7cbe8fafaf7804b56db3103f8f (patch) | |
| tree | 863705c68b3e5432f41ebe866565ca0431799b5b /libpcsxcore | |
| parent | 5ba533776f6e8a3a0e56b104fc95e2c85ba09b3d (diff) | |
| download | pcsxr-bfc8e12c52df1f7cbe8fafaf7804b56db3103f8f.tar.gz | |
Added option to not have memory card plugged. Chronicles of the Sword password screen can now be accessed.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@88004 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rwxr-xr-x | libpcsxcore/psxcommon.h | 1 | ||||
| -rwxr-xr-x | libpcsxcore/sio.c | 13 |
2 files changed, 9 insertions, 5 deletions
diff --git a/libpcsxcore/psxcommon.h b/libpcsxcore/psxcommon.h index 9fc1628b..bd12ef51 100755 --- a/libpcsxcore/psxcommon.h +++ b/libpcsxcore/psxcommon.h @@ -150,6 +150,7 @@ typedef struct { boolean RCntFix; boolean UseNet; boolean VSyncWA; + boolean NoMemcard; boolean Widescreen; boolean HideCursor; boolean SaveWindowPos; diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c index deca287a..22ca23e5 100755 --- a/libpcsxcore/sio.c +++ b/libpcsxcore/sio.c @@ -718,19 +718,22 @@ void sioWrite8(unsigned char value) { SIO_INT(SIO_CYCLES); return; case 0x81: // start memcard + //case 0x82: case 0x83: case 0x84: // Multitap memcard access StatReg |= RX_RDY; -#if 0 + // Chronicles of the Sword - no memcard = password options - if( Config.Memcard == 1 ) return; -#endif - memcpy(buf, cardh, 4); + if( Config.NoMemcard || ((strlen(Config.Mcd1) <=0) && (strlen(Config.Mcd2) <=0)) ) { + memset(buf, 0x00, 4); + } else { + memcpy(buf, cardh, 4); + } + parp = 0; bufcount = 3; mcdst = 1; rdwr = 0; SIO_INT(SIO_CYCLES); return; - case 0xae: // GameShark CDX - start dongle StatReg |= RX_RDY; gsdonglest = 1; |
