From c9aa6c17efbe59b9120b71fd299bae08ce967636 Mon Sep 17 00:00:00 2001 From: ReimousTH <51449880+ReimousTH@users.noreply.github.com> Date: Sat, 16 Aug 2025 15:41:43 +0300 Subject: [PATCH 1/2] POSTURE_STEER_FIX --- MarathonRecomp/patches/fps_patches.cpp | 6 ++++++ MarathonRecompLib/config/Marathon.toml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/MarathonRecomp/patches/fps_patches.cpp b/MarathonRecomp/patches/fps_patches.cpp index 5067635d3..fb0552c07 100644 --- a/MarathonRecomp/patches/fps_patches.cpp +++ b/MarathonRecomp/patches/fps_patches.cpp @@ -12,3 +12,9 @@ PPC_FUNC(sub_82587AA8) __imp__sub_82587AA8(ctx, base); } + +void HFR_POSTURE_STEER_FIX_01(PPCRegister& c_rotation_speed, PPCRegister& stack) +{ + double delta_time = *(be*)g_memory.Translate(stack.u32 + 0x200); + c_rotation_speed.f64 = (c_rotation_speed.f64 * (60.0f * delta_time)); +} diff --git a/MarathonRecompLib/config/Marathon.toml b/MarathonRecompLib/config/Marathon.toml index d544183d9..e4d52cc9d 100644 --- a/MarathonRecompLib/config/Marathon.toml +++ b/MarathonRecompLib/config/Marathon.toml @@ -204,3 +204,8 @@ registers = ["r26"] name = "DisableRadialBlur" address = 0x82653834 jump_address_on_true = 0x82653840 + +[[midasm_hook]] +name = "HFR_POSTURE_STEER_FIX_01" +address = 0x82201C6C +registers = ["f1","r1"] From 9dd9865c77f12a3f10d5b7323c467a583f1054e6 Mon Sep 17 00:00:00 2001 From: ReimousTH <51449880+ReimousTH@users.noreply.github.com> Date: Sat, 16 Aug 2025 16:45:54 +0300 Subject: [PATCH 2/2] Correction#1 --- MarathonRecomp/patches/fps_patches.cpp | 6 +++--- MarathonRecompLib/config/Marathon.toml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MarathonRecomp/patches/fps_patches.cpp b/MarathonRecomp/patches/fps_patches.cpp index fb0552c07..251ce4a5f 100644 --- a/MarathonRecomp/patches/fps_patches.cpp +++ b/MarathonRecomp/patches/fps_patches.cpp @@ -13,8 +13,8 @@ PPC_FUNC(sub_82587AA8) __imp__sub_82587AA8(ctx, base); } -void HFR_POSTURE_STEER_FIX_01(PPCRegister& c_rotation_speed, PPCRegister& stack) +void PostureControlRotationSpeedFix(PPCRegister& c_rotation_speed, PPCRegister& stack) { - double delta_time = *(be*)g_memory.Translate(stack.u32 + 0x200); - c_rotation_speed.f64 = (c_rotation_speed.f64 * (60.0f * delta_time)); + double deltaTime = *(be*)g_memory.Translate(stack.u32 + 0x200); + c_rotation_speed.f64 = (c_rotation_speed.f64 * (60.0f * deltaTime)); } diff --git a/MarathonRecompLib/config/Marathon.toml b/MarathonRecompLib/config/Marathon.toml index e4d52cc9d..bef3b84b4 100644 --- a/MarathonRecompLib/config/Marathon.toml +++ b/MarathonRecompLib/config/Marathon.toml @@ -206,6 +206,6 @@ address = 0x82653834 jump_address_on_true = 0x82653840 [[midasm_hook]] -name = "HFR_POSTURE_STEER_FIX_01" +name = "PostureControlRotationSpeedFix" address = 0x82201C6C -registers = ["f1","r1"] +registers = ["f1", "r1"]