From 0cfa925cc17b85f03b42b94b83a068a1b5699b26 Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Fri, 6 Sep 2019 08:35:58 +1000 Subject: [PATCH] frm: fix speed in data test modes --- .../plugins/TLAC/Components/FrameRateManager.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/source-code/source/plugins/TLAC/Components/FrameRateManager.cpp b/source-code/source/plugins/TLAC/Components/FrameRateManager.cpp index b26620c..6e761b6 100644 --- a/source-code/source/plugins/TLAC/Components/FrameRateManager.cpp +++ b/source-code/source/plugins/TLAC/Components/FrameRateManager.cpp @@ -186,16 +186,24 @@ namespace TLAC::Components *pvFrameRate = 60.0f * motionSpeedMultiplier; - // target framerate - *(float*)0x140eda6cc = *pvFrameRate; *aetFrameDuration = 1.0f / GetGameFrameRate(); - bool inGame = *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_GAME_MAIN || *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_DEMO; - if (inGame) + if (*(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_GAME_MAIN || *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_DEMO) { // enable dynamic framerate *(bool*)0x140eda79c = true; + + // target framerate + *(float*)0x140eda6cc = *pvFrameRate; + } + else if (*(GameState*)CURRENT_GAME_STATE_ADDRESS == GS_DATA_TEST) + { + // enable dynamic framerate + *(bool*)0x140eda79c = true; + + // target framerate + *(float*)0x140eda6cc = 60.0f; } else {