mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-31 04:01:16 +00:00
IsleApp::Tick static variables
This commit is contained in:
parent
41275c21ad
commit
04091640b8
@ -415,8 +415,8 @@ set_property(TARGET lego1 PROPERTY SUFFIX ".DLL")
|
|||||||
if (ISLE_BUILD_APP)
|
if (ISLE_BUILD_APP)
|
||||||
add_executable(isle WIN32
|
add_executable(isle WIN32
|
||||||
ISLE/res/isle.rc
|
ISLE/res/isle.rc
|
||||||
ISLE/isleapp.cpp
|
|
||||||
ISLE/define.cpp
|
ISLE/define.cpp
|
||||||
|
ISLE/isleapp.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(isle PRIVATE ISLE_APP)
|
target_compile_definitions(isle PRIVATE ISLE_APP)
|
||||||
|
|||||||
@ -32,9 +32,3 @@ int g_targetDepth = 16;
|
|||||||
|
|
||||||
// GLOBAL: ISLE 0x410064
|
// GLOBAL: ISLE 0x410064
|
||||||
int g_reqEnableRMDevice = 0;
|
int g_reqEnableRMDevice = 0;
|
||||||
|
|
||||||
// GLOBAL: ISLE 0x4101bc
|
|
||||||
int g_startupDelay = 200;
|
|
||||||
|
|
||||||
// GLOBAL: ISLE 0x4101c0
|
|
||||||
MxLong g_lastFrameTime = 0;
|
|
||||||
|
|||||||
@ -21,7 +21,5 @@ extern int g_targetWidth;
|
|||||||
extern int g_targetHeight;
|
extern int g_targetHeight;
|
||||||
extern int g_targetDepth;
|
extern int g_targetDepth;
|
||||||
extern int g_reqEnableRMDevice;
|
extern int g_reqEnableRMDevice;
|
||||||
extern int g_startupDelay;
|
|
||||||
extern MxLong g_lastFrameTime;
|
|
||||||
|
|
||||||
#endif // DEFINE_H
|
#endif // DEFINE_H
|
||||||
|
|||||||
@ -765,6 +765,12 @@ void IsleApp::LoadConfig()
|
|||||||
// FUNCTION: ISLE 0x402c20
|
// FUNCTION: ISLE 0x402c20
|
||||||
inline void IsleApp::Tick(BOOL sleepIfNotNextFrame)
|
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) {
|
if (!this->m_windowActive) {
|
||||||
Sleep(0);
|
Sleep(0);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user