mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 07:28:00 -05:00
MxTimer matching (#29)
* MxTimer::Start - swap instruction order Technically, isRunning is set after getting the real time according to the pseudo code, which i guess is fine, you dont know it started until it really started * MxTimer - finish tweaking to match assembly
This commit is contained in:
parent
4b71fb8815
commit
2644be3ca6
1 changed files with 6 additions and 5 deletions
|
@ -10,17 +10,18 @@ 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()
|
||||
{
|
||||
s_LastTimeTimerStarted = this->GetRealTime();
|
||||
this->m_isRunning = MX_TRUE;
|
||||
MxTimer::s_LastTimeTimerStarted = timeGetTime();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100ae180
|
||||
|
|
Loading…
Reference in a new issue