mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-11-01 03:56:40 +01: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:
1 parent
8f80396b1f
commit
e899f32f0e
2 files changed
-20
No files matched your search
@@ -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