Skip to content

Commit 832c838

Browse files
author
ReimousTH
committed
Initial
1 parent bfebb2e commit 832c838

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

MarathonRecomp/patches/fps_patches.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <api/Marathon.h>
22
#include <user/config.h>
3+
#include <app.h>
4+
35

46
// Sonicteam::SoX::Physics::Havok::WorldHavok::Update
57
PPC_FUNC_IMPL(__imp__sub_82587AA8);
@@ -120,4 +122,20 @@ void PlayerObject_ProcessMsgSuckPlayer_FixDeltaTime(PPCRegister& message, PPCReg
120122
auto pMessage = (MsgSuckPlayerEx*)g_memory.Translate(message.u32);
121123

122124
deltaTime.f64 = pMessage->DeltaTime;
125+
126+
//not need anything here
127+
void ParticleHFR_826454C8(PPCRegister& f31)
128+
{
129+
130+
}
131+
132+
void ParticleHFR_82670658(PPCRegister& f1,PPCRegister& stack)
133+
{
134+
auto delta = ((be<double>*)(g_memory.Translate(stack.u32 + 0x1A0 - 0x48 - 8)))->get();
135+
f1.f64 = App::s_deltaTime; //find delta normally, someday
136+
}
137+
138+
void ParticleHFR_8266A418_1(PPCRegister& f31,PPCRegister& stack)
139+
{
140+
f31.f64 = App::s_deltaTime; //find delta normally, someday
123141
}

MarathonRecompLib/config/Marathon.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,3 +508,21 @@ registers = ["r28", "f1"]
508508
name = "PlayerObject_ProcessMsgSuckPlayer_FixDeltaTime"
509509
address = 0x8219B660
510510
registers = ["r28", "f31"]
511+
512+
[[midasm_hook]]
513+
name = "ParticleHFR_826454C8"
514+
address = 0x82645518
515+
registers = ["f31"]
516+
jump_address = 0x8264551C
517+
518+
[[midasm_hook]]
519+
name = "ParticleHFR_82670658"
520+
address = 0x82670724
521+
registers = ["f1","r1"]
522+
after_instruction = true
523+
524+
[[midasm_hook]]
525+
name = "ParticleHFR_8266A418_1"
526+
address = 0x8266A57C
527+
registers = ["f31","r1"]
528+
after_instruction = true

0 commit comments

Comments
 (0)