restrict frame rate adjustments to in-pv and attract demos only
This commit is contained in:
@@ -191,7 +191,7 @@ namespace TLAC::Components
|
||||
|
||||
*aetFrameDuration = 1.0f / GetGameFrameRate();
|
||||
|
||||
bool inGame = *(GameState*)CURRENT_GAME_STATE_ADDRESS == GS_GAME;
|
||||
bool inGame = *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_GAME_MAIN || *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_DEMO;
|
||||
if (inGame)
|
||||
{
|
||||
// enable dynamic framerate
|
||||
|
||||
@@ -10,6 +10,7 @@ constexpr uint8_t JNE_OPCODE = 0x85;
|
||||
constexpr uint64_t ENGINE_UPDATE_INPUT_ADDRESS = 0x000000014018CBB0;
|
||||
|
||||
constexpr uint64_t CURRENT_GAME_STATE_ADDRESS = 0x0000000140EDA810;
|
||||
constexpr uint64_t CURRENT_GAME_SUB_STATE_ADDRESS = 0x0000000140EDA82C;
|
||||
constexpr uint64_t RESOLUTION_WIDTH_ADDRESS = 0x0000000140EDA8BC;
|
||||
constexpr uint64_t RESOLUTION_HEIGHT_ADDRESS = 0x0000000140EDA8C0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user