mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-30 16:22:58 -06: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user