handle interrupt signals during CONS_Error

also move stuff into smol inline function
This commit is contained in:
alufolie91 committed 2026-06-15 14:51:35 +02:00
1 parent e1061ab4b4
commit fa1b797a44
5 files changed
+10 -12

No files matched your search

+2
View File
@@ -1437,6 +1437,8 @@ void CONS_Error(const char *msg)
// dirty quick hack, but for the good cause
while (I_GetKey() != KEY_ENTER)
{
I_HandleInterrupt();
// Sleep so we don't take too much of cpu usage
I_Sleep(1.f/TICRATE*1000);
+1 -4
View File
@@ -2858,10 +2858,7 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic
{
INT32 key;
if (I_Interrupted())
{
I_Quit();
}
I_HandleInterrupt();
I_OsPolling();
+1 -4
View File
@@ -726,10 +726,7 @@ void D_SRB2Loop(void)
enterprecise = I_GetPreciseTime();
if (I_Interrupted())
{
I_Quit();
}
I_HandleInterrupt();
memset(&g_dc, 0, sizeof(g_dc));
Z_Frame_Reset();
+1 -4
View File
@@ -361,10 +361,7 @@ void F_RunWipe(UINT8 wipetype, boolean drawMenu)
// on for fade-to-black
for (;;)
{
if (I_Interrupted())
{
I_Quit();
}
I_HandleInterrupt();
// get fademask first so we can tell if it exists or not
fmask = F_GetFadeMask(wipetype, wipeframe++);
+5
View File
@@ -203,6 +203,11 @@ void I_ShutdownSystem(void);
/** \brief To check if a Interrupt or Terminate Signal was fired
*/
boolean I_Interrupted(void);
static inline void I_HandleInterrupt(void)
{
if (I_Interrupted())
I_Quit();
}
/** \brief The I_GetDiskFreeSpace function