Skip to content

Commit 3598aa2

Browse files
author
ReimousTH
committed
1 parent 0bc310f commit 3598aa2

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

MarathonRecomp/patches/fps_patches.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,11 @@ PPC_FUNC(sub_8250D698)
221221

222222
__imp__sub_8250D698(ctx, base);
223223
}
224+
225+
void ObjVehicleBike_BulletDisableCollisionLayer(PPCRegister& r6)
226+
{
227+
if (Config::FPS <= 60.0)
228+
return;
229+
230+
r6.u32 = 0x5E00;
231+
}

MarathonRecompLib/config/Marathon.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,3 +568,10 @@ registers = ["f31", "f1"]
568568
name = "HUDWindow_Callback"
569569
address = 0x824FA088
570570
registers = ["f1", "f31"]
571+
572+
[[midasm_hook]]
573+
name = "ObjVehicleBike_BulletDisableCollisionLayer"
574+
address = 0x823D6744
575+
registers = ["r6"]
576+
after_instruction =true
577+

0 commit comments

Comments
 (0)