summaryrefslogtreecommitdiffstats
path: root/src/Timer.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-06-02 05:00:38 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-06-02 05:00:38 +0200
commitb1f9e28cd155459ab2843690c248ed9f4767bc3f (patch)
tree8e7d2a33d4c5109ea3c3562940268afc57d0915c /src/Timer.cpp
parentrw skeleton (diff)
downloadre3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.gz
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.bz2
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.lz
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.xz
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.zst
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.zip
Diffstat (limited to 'src/Timer.cpp')
-rw-r--r--src/Timer.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/Timer.cpp b/src/Timer.cpp
index c4609d7f..3a49d9df 100644
--- a/src/Timer.cpp
+++ b/src/Timer.cpp
@@ -16,15 +16,23 @@ float &CTimer::ms_fTimeStepNonClipped = *(float*)0x8E2C4C;
bool &CTimer::m_UserPause = *(bool*)0x95CD7C;
bool &CTimer::m_CodePause = *(bool*)0x95CDB1;
-UInt32 oldPcTimer;
-UInt32 suspendPcTimer;
+//UInt32 oldPcTimer;
+UInt32 &oldPcTimer = *(UInt32*)0x9434F4;
-UInt32 _nCyclesPerMS = 1;
+//UInt32 suspendPcTimer;
+UInt32 &suspendPcTimer = *(UInt32*)0x62A308;
-LARGE_INTEGER _oldPerfCounter;
-LARGE_INTEGER perfSuspendCounter;
+//UInt32 _nCyclesPerMS = 1;
+UInt32 &_nCyclesPerMS = *(UInt32*)0x5F7610;
-UInt32 suspendDepth;
+//LARGE_INTEGER _oldPerfCounter;
+LARGE_INTEGER &_oldPerfCounter = *(LARGE_INTEGER*)0x62A310;
+
+//LARGE_INTEGER perfSuspendCounter;
+LARGE_INTEGER &perfSuspendCounter = *(LARGE_INTEGER*)0x62A318;
+
+//UInt32 suspendDepth;
+UInt32 &suspendDepth = *(UInt32*)0x62A320;
void CTimer::Initialise(void)
{