summaryrefslogtreecommitdiffstats
path: root/src/core/Timer.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-17 07:54:14 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-17 07:54:14 +0200
commita4922d5cb77e31657768d5da4b286a2e67ee0e6f (patch)
treec54c73ac29fbde0233614c60423f662318d2a167 /src/core/Timer.cpp
parentMerge pull request #455 from erorcun/erorcun (diff)
downloadre3-a4922d5cb77e31657768d5da4b286a2e67ee0e6f.tar
re3-a4922d5cb77e31657768d5da4b286a2e67ee0e6f.tar.gz
re3-a4922d5cb77e31657768d5da4b286a2e67ee0e6f.tar.bz2
re3-a4922d5cb77e31657768d5da4b286a2e67ee0e6f.tar.lz
re3-a4922d5cb77e31657768d5da4b286a2e67ee0e6f.tar.xz
re3-a4922d5cb77e31657768d5da4b286a2e67ee0e6f.tar.zst
re3-a4922d5cb77e31657768d5da4b286a2e67ee0e6f.zip
Diffstat (limited to '')
-rw-r--r--src/core/Timer.cpp50
1 files changed, 22 insertions, 28 deletions
diff --git a/src/core/Timer.cpp b/src/core/Timer.cpp
index fda862f1..68b31e6f 100644
--- a/src/core/Timer.cpp
+++ b/src/core/Timer.cpp
@@ -5,34 +5,28 @@
#include "Record.h"
#include "Timer.h"
-uint32 &CTimer::m_snTimeInMilliseconds = *(uint32*)0x885B48;
-uint32 &CTimer::m_snTimeInMillisecondsPauseMode = *(uint32*)0x5F7614;
-uint32 &CTimer::m_snTimeInMillisecondsNonClipped = *(uint32*)0x9412E8;
-uint32 &CTimer::m_snPreviousTimeInMilliseconds = *(uint32*)0x8F29E4;
-uint32 &CTimer::m_FrameCounter = *(uint32*)0x9412EC;
-float &CTimer::ms_fTimeScale = *(float*)0x8F2C20;
-float &CTimer::ms_fTimeStep = *(float*)0x8E2CB4;
-float &CTimer::ms_fTimeStepNonClipped = *(float*)0x8E2C4C;
-bool &CTimer::m_UserPause = *(bool*)0x95CD7C;
-bool &CTimer::m_CodePause = *(bool*)0x95CDB1;
-
-//UInt32 oldPcTimer;
-uint32 &oldPcTimer = *(uint32*)0x9434F4;
-
-//UInt32 suspendPcTimer;
-uint32 &suspendPcTimer = *(uint32*)0x62A308;
-
-//UInt32 _nCyclesPerMS = 1;
-uint32 &_nCyclesPerMS = *(uint32*)0x5F7610;
-
-//LARGE_INTEGER _oldPerfCounter;
-LARGE_INTEGER &_oldPerfCounter = *(LARGE_INTEGER*)0x62A310;
-
-//LARGE_INTEGER perfSuspendCounter;
-LARGE_INTEGER &perfSuspendCounter = *(LARGE_INTEGER*)0x62A318;
-
-//UInt32 suspendDepth;
-uint32 &suspendDepth = *(uint32*)0x62A320;
+uint32 CTimer::m_snTimeInMilliseconds;
+uint32 CTimer::m_snTimeInMillisecondsPauseMode = 1;
+uint32 CTimer::m_snTimeInMillisecondsNonClipped;
+uint32 CTimer::m_snPreviousTimeInMilliseconds;
+uint32 CTimer::m_FrameCounter;
+float CTimer::ms_fTimeScale;
+float CTimer::ms_fTimeStep;
+float CTimer::ms_fTimeStepNonClipped;
+bool CTimer::m_UserPause;
+bool CTimer::m_CodePause;
+
+uint32 oldPcTimer;
+
+uint32 suspendPcTimer;
+
+uint32 _nCyclesPerMS = 1;
+
+LARGE_INTEGER _oldPerfCounter;
+
+LARGE_INTEGER perfSuspendCounter;
+
+uint32 suspendDepth;
#ifdef FIX_BUGS
double frameTime;