mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
9e686e2a87
* cmake+ci: run clang-tidy
* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def
* Add initial .clang-tidy and fixes
* fix file perms
* Comment out DESCRIPTION
* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def
* Looks like clang is allergic to the libs in the directx5 SDK
* Update .clang-tidy
* Fix typo in .clang-tidy
* Attempt to generate an action error
* Revert "Attempt to generate an action error"
This reverts commit 96c4c65fed
.
* cmake: test with -Wparentheses + optionally with -Werror
* ci: -k0 is a Ninja argument
* Use -Werror only for msys2 builds
* cmake: only emit warnings for specific warnings
* cmake: and don't do -Werror/-WX anymore
* Fix warnings
* Fix mingw warnings
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
37 lines
594 B
C++
37 lines
594 B
C++
#ifndef MXTIMER_H
|
|
#define MXTIMER_H
|
|
|
|
#include "mxcore.h"
|
|
|
|
// VTABLE: LEGO1 0x100dc0e0
|
|
// SIZE 0x10
|
|
class MxTimer : public MxCore {
|
|
public:
|
|
MxTimer();
|
|
|
|
void Start();
|
|
void Stop();
|
|
|
|
MxLong GetRealTime();
|
|
|
|
inline MxLong GetTime()
|
|
{
|
|
if (this->m_isRunning) {
|
|
return g_lastTimeTimerStarted;
|
|
}
|
|
else {
|
|
return g_lastTimeCalculated - this->m_startTime;
|
|
}
|
|
}
|
|
|
|
// SYNTHETIC: LEGO1 0x100ae0d0
|
|
// MxTimer::`scalar deleting destructor'
|
|
|
|
private:
|
|
MxLong m_startTime;
|
|
MxBool m_isRunning;
|
|
static MxLong g_lastTimeCalculated;
|
|
static MxLong g_lastTimeTimerStarted;
|
|
};
|
|
|
|
#endif // MXTIMER_H
|