mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
Fix remaining bugs and fix indentation
This commit is contained in:
parent
9a570a67ca
commit
126eb5f469
1 changed files with 132 additions and 131 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue