try a little hack to fix tomb raider underworld savefile which was writing past its 512B limit

This commit is contained in:
zeromus 2009-06-11 04:33:11 +00:00
parent 1c1dd8bb30
commit 0ef0afed15
1 changed files with 4 additions and 3 deletions

View File

@ -397,12 +397,13 @@ u8 BackupDevice::data_command(u8 val)
addr |= val; addr |= val;
addr_counter++; addr_counter++;
//if(addr_counter==addr_size) printf("ADR: %08X\n",addr); //if(addr_counter==addr_size) printf("ADR: %08X\n",addr);
//why does tomb raider underworld access 0x180 and go clear through to 0x280?
//should this wrap around at 0 or at 0x100?
//if(addr_size == 1) addr &= 0x1FF;
} }
else else
{ {
//why does tomb raider underworld access 0x180 and go clear through to 0x280?
//should this wrap around at 0 or at 0x100?
if(addr_size == 1) addr &= 0x1FF;
//address is complete //address is complete
ensure(addr+1); ensure(addr+1);
if(com == BM_CMD_READLOW) if(com == BM_CMD_READLOW)