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:
Hyper 2024-10-18 09:03:30 +01:00
parent 8f80396b1f
commit e899f32f0e
2 changed files with 0 additions and 20 deletions

View file

@ -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

View file

@ -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