Fix remaining bugs and fix indentation

This commit is contained in:
iLag 2017-03-25 20:28:08 -07:00 committed by notaz
parent 9a570a67ca
commit 126eb5f469

View file

@ -174,7 +174,8 @@ void genie_decode_ms(const char *code, struct patch *result)
/* Correct the address */
result->addr = ((result->addr >> 4) | (result->addr << 12 & 0xF000)) ^ 0xF000;
/* Optional: 3 digits for comp */
if (code[8]=='-'){
if (code[7]=='-')
{
for(i=8;i<11;++i)
{
if (i==9) continue; /* 2nd character is ignored */
@ -447,7 +448,7 @@ void PicoPatchPrepare(void)
if(!(PicoAHW & PAHW_SMS))
PicoPatches[i].data_old = (unsigned short) m68k_read16(addr);
else
; // wrong: PicoPatches[i].data_old = (unsigned char) PicoRead8_z80(addr);
;// wrong: PicoPatches[i].data_old = (unsigned char) PicoRead8_z80(addr);
}
if (strstr(PicoPatches[i].name, "AUTO"))
PicoPatches[i].active = 1;