mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Add HFR patches for 2D camera slope sensitivity.
This commit is contained in:
parent
0400c79628
commit
611a2c7c31
2 changed files with 16 additions and 0 deletions
|
|
@ -380,4 +380,9 @@ void Camera2DLerpFixMidAsmHook(PPCRegister& t, PPCRegister& deltaTime)
|
|||
t.f64 = ComputeLerpFactor(std::min<double>(1.0, t.f64 * 2.0), deltaTime.f64 / 60.0);
|
||||
}
|
||||
|
||||
void Camera2DSlopeLerpFixMidAsmHook(PPCRegister& t, PPCRegister& deltaTime)
|
||||
{
|
||||
t.f64 = ComputeLerpFactor(t.f64, deltaTime.f64 / 60.0);
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
|
|
|||
|
|
@ -324,6 +324,17 @@ address = 0x824768C8 # Spherical position
|
|||
registers = ["f0", "f28"]
|
||||
jump_address = 0x824768CC
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "CameraDeltaTimeFixMidAsmHook"
|
||||
address = 0x82476768 # Slope
|
||||
registers = ["f1", "f30"]
|
||||
jump_address = 0x8247676C
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "Camera2DSlopeLerpFixMidAsmHook"
|
||||
address = 0x82476778 # Slope
|
||||
registers = ["f1", "f28"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "GetStageIDMidAsmHook"
|
||||
address = 0x82528198
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue