From 3792ccef4d5e90647429ffc1c158c2152adfdbfb Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Sat, 29 Nov 2025 08:07:10 +1300 Subject: [PATCH] ApplyFrameBoundary matching --- src/DETHRACE/common/globvars.c | 1 + src/DETHRACE/common/piping.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DETHRACE/common/globvars.c b/src/DETHRACE/common/globvars.c index a0b92f9c..5fbc8c47 100644 --- a/src/DETHRACE/common/globvars.c +++ b/src/DETHRACE/common/globvars.c @@ -191,6 +191,7 @@ br_font* gHeadup_font; // GLOBAL: CARM95 0x005454b8 tU32 gRace_finished; +// GLOBAL: CARM95 0x0054B244 tU32 gFrame_start_time; // GLOBAL: CARM95 0x00546930 diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index 7e13dcf5..eed1f1f0 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -1455,8 +1455,9 @@ void ApplyOilSpill(tPipe_chunk** pChunk, tU32 pStop_time) { void ApplyFrameBoundary(tPipe_chunk** pChunk) { tU32 result; - gLast_replay_frame_time = (*pChunk)->chunk_data.frame_boundary_data.time; - // DAT_0054b244 = PDGetTotalTime(); + result = (*pChunk)->chunk_data.frame_boundary_data.time; + gLast_replay_frame_time = result; + gFrame_start_time = PDGetTotalTime(); AdvanceChunkPtr(pChunk, ePipe_chunk_frame_boundary); }