IsleApp::Tick static variables

This commit is contained in:
disinvite 2024-02-04 19:52:33 -05:00
parent 41275c21ad
commit 04091640b8
4 changed files with 7 additions and 9 deletions

View File

@ -415,8 +415,8 @@ set_property(TARGET lego1 PROPERTY SUFFIX ".DLL")
if (ISLE_BUILD_APP)
add_executable(isle WIN32
ISLE/res/isle.rc
ISLE/isleapp.cpp
ISLE/define.cpp
ISLE/isleapp.cpp
)
target_compile_definitions(isle PRIVATE ISLE_APP)

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;