MxTimer - finish tweaking to match assembly

This commit is contained in:
Joshua Peisach 2023-06-20 19:09:36 -04:00
parent d6ed66d89b
commit 6604cba851

View File

@ -10,16 +10,17 @@ long MxTimer::s_LastTimeTimerStarted = 0;
// OFFSET: LEGO1 0x100ae060
MxTimer::MxTimer()
{
this->m_isRunning = MX_FALSE;
MxTimer::s_LastTimeCalculated = timeGetTime();
this->m_startTime = MxTimer::s_LastTimeCalculated;
{
this->m_isRunning = MX_FALSE;
m_startTime = timeGetTime();
// yeah this is somehow what the asm is
s_LastTimeCalculated = m_startTime;
}
// OFFSET: LEGO1 0x100ae160
void MxTimer::Start()
{
MxTimer::s_LastTimeTimerStarted = timeGetTime();
s_LastTimeTimerStarted = this->GetRealTime();
this->m_isRunning = MX_TRUE;
}