Skip to content

Commit

Permalink
GameDB: Better patch for ONI games, less invasive
Browse files Browse the repository at this point in the history
On real hardware the PCR write will be completed after the BC0F instruction causing it to pass, so we simulate this now
  • Loading branch information
refractionpcsx2 committed Oct 4, 2020
1 parent 7ca2385 commit 2c717c3
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions bin/GameIndex.dbf
Original file line number Diff line number Diff line change
Expand Up @@ -7126,9 +7126,10 @@ Name = Oni
Region = PAL-E
Compat = 5
[patches = 22E85E68]
comment=Patches by Nachbrenner
// Skip "branch if copro 0 condition false".
patch=0,EE,001cef7c,word,00000000 // bc0f $001cef7c
comment=Patch by refraction
// Rearrange PCR write and BC0F instruction
patch=0,EE,001CEF78,word,4100ffff
patch=0,EE,001CEF7C,word,ac430000
[/patches]
---------------------------------------------
Serial = SLES-50136
Expand Down Expand Up @@ -7194,28 +7195,31 @@ Name = Oni
Region = PAL-F
Compat = 5
[patches = F77639F1]
comment=Patches by Nachbrenner
// Skip "branch if copro 0 condition false".
patch=0,EE,001cef7c,word,00000000 // bc0f $001cef7c
comment=Patch by refraction
// Rearrange PCR write and BC0F instruction
patch=0,EE,001CEF78,word,4100ffff
patch=0,EE,001CEF7C,word,ac430000
[/patches]
---------------------------------------------
Serial = SLES-50177
Name = Oni
Region = PAL-G
Compat = 5
[patches = 32629F36]
comment=Patches by Nachbrenner
// Skip "branch if copro 0 condition false".
patch=0,EE,001cef7c,word,00000000 // bc0f $001cef7c
comment=Patch by refraction
// Rearrange PCR write and BC0F instruction
patch=0,EE,001CEF78,word,4100ffff
patch=0,EE,001CEF7C,word,ac430000
[/patches]
---------------------------------------------
Serial = SLES-50178
Name = Oni
Region = PAL-I
[patches = 172B6971]
author=Nachbrenner
// Skip "branch if copro 0 condition false".
patch=0,EE,001cef7c,word,00000000 // bc0f $001cef7c
comment=Patch by refraction
// Rearrange PCR write and BC0F instruction
patch=0,EE,001CEF78,word,4100ffff
patch=0,EE,001CEF7C,word,ac430000
[/patches]
---------------------------------------------
Serial = SLES-50179
Expand Down Expand Up @@ -35397,9 +35401,10 @@ Name = Oni
Region = NTSC-U
Compat = 5
[patches = FD9CD8FC]
comment=Patch by Shadow Lady
// Skip branch bc0f.
patch=0,EE,001CF3CC,word,00000000
comment=Patch by refraction
// Rearrange PCR write and BC0F instruction
patch=0,EE,001CF3C8,word,4100ffff
patch=0,EE,001CF3CC,word,ac430000
[/patches]
---------------------------------------------
Serial = SLUS-20065
Expand Down

0 comments on commit 2c717c3

Please sign in to comment.