Just revert the last commit until the bug is fixed. Prevents people from messing up their memory cards.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5775 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2.code 2013-12-28 10:41:57 +00:00
parent 6cd7c74d51
commit d6bb242042
1 changed files with 2 additions and 5 deletions

View File

@ -421,7 +421,6 @@ SIO_WRITE memcardSector(u8 data)
{ {
static u8 xor_check = 0; static u8 xor_check = 0;
static bool sectorDone = false; static bool sectorDone = false;
static u16 length = 0;
if(!sectorDone) if(!sectorDone)
{ {
@ -433,12 +432,12 @@ SIO_WRITE memcardSector(u8 data)
case 5: mcd->sectorAddr |= data << 24; xor_check ^= data; break; case 5: mcd->sectorAddr |= data << 24; xor_check ^= data; break;
case 6: mcd->goodSector = data == xor_check; break; case 6: mcd->goodSector = data == xor_check; break;
case 8: mcd->transferAddr = (512+16) * mcd->sectorAddr; break; case 8: mcd->transferAddr = (512+16) * mcd->sectorAddr; break;
case 9: memset8<0xFF>(sio.buf); sectorDone = true; length = 9; case 9: memset8<0xFF>(sio.buf); sectorDone = true;
} }
} }
else else
{ {
if(length > 0xFF && data == 0x81) // SET_SECTOR End if (data == 0x81) // SET_SECTOR End
{ {
SIO_STAT_READY(); SIO_STAT_READY();
sectorDone = false; sectorDone = false;
@ -446,8 +445,6 @@ SIO_WRITE memcardSector(u8 data)
siomode = SIO_MEMCARD_TRANSFER; siomode = SIO_MEMCARD_TRANSFER;
}; };
} }
length++;
} }
SIO_WRITE memcardInit() SIO_WRITE memcardInit()