mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Remove CSD offset hook
We'll just move the casts manually once we get around to sorting the rest of the UI out, this'll just interfere with that.
This commit is contained in:
parent
8f80396b1f
commit
e899f32f0e
2 changed files with 0 additions and 20 deletions
|
|
@ -56,20 +56,6 @@ void CSDAspectRatioMidAsmHook(PPCRegister& f1, PPCRegister& f2)
|
|||
}
|
||||
}
|
||||
|
||||
void CSDOffsetMidAsmHook(PPCRegister& f1, PPCRegister& f2)
|
||||
{
|
||||
auto newAspectRatio = (float)Window::s_width / (float)Window::s_height;
|
||||
|
||||
if (newAspectRatio > m_baseAspectRatio)
|
||||
{
|
||||
*(be<float>*)g_memory.Translate(0x8339C5D0) = ((newAspectRatio * 720.0f) - 1280.0f) / 2.0f / 1280.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
*(be<float>*)g_memory.Translate(0x8339C5D4) = ((1280.0f / newAspectRatio) - 720.0f) / 2.0f / 720.0f;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Score Hooks
|
||||
|
|
|
|||
|
|
@ -121,12 +121,6 @@ name = "CSDAspectRatioMidAsmHook"
|
|||
address = 0x830C0A28
|
||||
registers = ["f1", "f2"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "CSDOffsetMidAsmHook"
|
||||
address = 0x830C0A78
|
||||
registers = ["f1", "f2"]
|
||||
return = true
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ResetScoreOnRestartMidAsmHook"
|
||||
address = 0x82304374
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue