mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Display correct game logo for Japanese
This commit is contained in:
parent
2f579aeb40
commit
0cae5feba9
1 changed files with 15 additions and 0 deletions
|
|
@ -71,3 +71,18 @@ void CSDOffsetMidAsmHook(PPCRegister& f1, PPCRegister& f2)
|
|||
*(be<float>*)g_memory.Translate(0x8339C5D4) = ((1280.0f / newAspectRatio) - 720.0f) / 2.0f / 720.0f;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hook function that gets the game region
|
||||
and force result to zero for Japanese
|
||||
to display the correct logos. */
|
||||
PPC_FUNC_IMPL(__imp__sub_825197C0);
|
||||
PPC_FUNC(sub_825197C0)
|
||||
{
|
||||
if (Config::Language == ELanguage_Japanese)
|
||||
{
|
||||
ctx.r3.u64 = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
__imp__sub_825197C0(ctx, base);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue