Match static function variables (#530)

* Match static function variables

* IsleApp::Tick static variables
This commit is contained in:
MS
2024-02-05 06:43:13 -05:00
committed by GitHub
parent 0497ef13fb
commit 264b9e815b
10 changed files with 167 additions and 17 deletions

View File

@@ -32,9 +32,3 @@ int g_targetDepth = 16;
// GLOBAL: ISLE 0x410064
int g_reqEnableRMDevice = 0;
// GLOBAL: ISLE 0x4101bc
int g_startupDelay = 200;
// GLOBAL: ISLE 0x4101c0
MxLong g_lastFrameTime = 0;

View File

@@ -21,7 +21,5 @@ extern int g_targetWidth;
extern int g_targetHeight;
extern int g_targetDepth;
extern int g_reqEnableRMDevice;
extern int g_startupDelay;
extern MxLong g_lastFrameTime;
#endif // DEFINE_H

View File

@@ -765,6 +765,12 @@ void IsleApp::LoadConfig()
// FUNCTION: ISLE 0x402c20
inline void IsleApp::Tick(BOOL sleepIfNotNextFrame)
{
// GLOBAL: ISLE 0x4101c0
static MxLong g_lastFrameTime = 0;
// GLOBAL: ISLE 0x4101bc
static int g_startupDelay = 200;
if (!this->m_windowActive) {
Sleep(0);
return;