diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-06 18:26:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 18:26:04 +0200 |
commit | b991fd9766c77354454c76c906f7806680605500 (patch) | |
tree | f7425645eb83088646a72b713cd08a665947650e /src/core/Timer.cpp | |
parent | Implement Init for Stats (diff) | |
parent | fixed look behind bug (diff) | |
download | re3-b991fd9766c77354454c76c906f7806680605500.tar re3-b991fd9766c77354454c76c906f7806680605500.tar.gz re3-b991fd9766c77354454c76c906f7806680605500.tar.bz2 re3-b991fd9766c77354454c76c906f7806680605500.tar.lz re3-b991fd9766c77354454c76c906f7806680605500.tar.xz re3-b991fd9766c77354454c76c906f7806680605500.tar.zst re3-b991fd9766c77354454c76c906f7806680605500.zip |
Diffstat (limited to 'src/core/Timer.cpp')
-rw-r--r-- | src/core/Timer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/Timer.cpp b/src/core/Timer.cpp index bcf84560..18d6b6a3 100644 --- a/src/core/Timer.cpp +++ b/src/core/Timer.cpp @@ -75,9 +75,6 @@ void CTimer::Shutdown(void) ; } -#if 0 -WRAPPER void CTimer::Update(void) { EAXJMP(0x4ACF70); } -#else void CTimer::Update(void) { m_snPreviousTimeInMilliseconds = m_snTimeInMilliseconds; @@ -149,7 +146,6 @@ void CTimer::Update(void) m_FrameCounter++; } -#endif void CTimer::Suspend(void) { @@ -218,6 +214,11 @@ void CTimer::EndUserPause(void) m_UserPause = false; } +uint32 CTimer::GetCyclesPerFrame() +{ + return 20; +} + #if 1 STARTPATCHES InjectHook(0x4ACE60, CTimer::Initialise, PATCH_JUMP); |