From 7c0c45d630bd5626602e03a20add6d6617f9d84e Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 20 May 2025 23:11:52 +0200 Subject: [PATCH] g_closed test in SDL_AppIterate is still needed --- ISLE/isleapp.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 4fa20ee5..64823af1 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -286,6 +286,9 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv) SDL_AppResult SDL_AppIterate(void* appstate) { + if (g_closed) { + return SDL_APP_SUCCESS; + } if (!g_isle->Tick()) { SDL_ShowSimpleMessageBox( @@ -299,6 +302,8 @@ SDL_AppResult SDL_AppIterate(void* appstate) } if (!g_closed) { + IsleDebug_Render(); + if (g_reqEnableRMDevice) { g_reqEnableRMDevice = FALSE; VideoManager()->EnableRMDevice(); @@ -306,8 +311,6 @@ SDL_AppResult SDL_AppIterate(void* appstate) Lego()->Resume(); } - IsleDebug_Render(); - if (g_closed) { return SDL_APP_SUCCESS; }