mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
MxTimer touch-up (#1096)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "mxcore.h"
|
||||
|
||||
// VTABLE: LEGO1 0x100dc0e0
|
||||
// VTABLE: BETA10 0x101c1bb0
|
||||
// SIZE 0x10
|
||||
class MxTimer : public MxCore {
|
||||
public:
|
||||
@@ -14,19 +15,23 @@ public:
|
||||
|
||||
MxLong GetRealTime();
|
||||
|
||||
// FUNCTION: BETA10 0x1012bf50
|
||||
void InitLastTimeCalculated() { g_lastTimeCalculated = m_startTime; }
|
||||
|
||||
// FUNCTION: BETA10 0x10017810
|
||||
MxLong GetTime()
|
||||
{
|
||||
// Note that the BETA10 implementation differs - it only consists of the second branch of this `if` call
|
||||
if (this->m_isRunning) {
|
||||
if (m_isRunning) {
|
||||
return g_lastTimeTimerStarted;
|
||||
}
|
||||
else {
|
||||
return g_lastTimeCalculated - this->m_startTime;
|
||||
return g_lastTimeCalculated - m_startTime;
|
||||
}
|
||||
}
|
||||
|
||||
// SYNTHETIC: LEGO1 0x100ae0d0
|
||||
// SYNTHETIC: BETA10 0x1012bf80
|
||||
// MxTimer::`scalar deleting destructor'
|
||||
|
||||
private:
|
||||
@@ -37,4 +42,7 @@ private:
|
||||
static MxLong g_lastTimeTimerStarted;
|
||||
};
|
||||
|
||||
// SYNTHETIC: BETA10 0x1012bfc0
|
||||
// MxTimer::~MxTimer
|
||||
|
||||
#endif // MXTIMER_H
|
||||
|
Reference in New Issue
Block a user