From fb030288f941615df5bfa2a2fbaf6a075b8ab6ca Mon Sep 17 00:00:00 2001 From: Andrew Alderwick Date: Mon, 13 Jun 2022 09:15:20 +0100 Subject: [PATCH] Disable execution timeouts for now. This is a quick hack to disable the execution timeout, while still making the application able to exit if the window is requested to close. Execution limits may be reintroduced with more debugging features, but not enabled by default. --- src/uxnemu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxnemu.c b/src/uxnemu.c index cdb24f7..8c1c99e 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -466,7 +466,7 @@ run(Uxn *u) int uxn_interrupt(void) { - return ((Sint64)(exec_deadline - SDL_GetPerformanceCounter())) > 0; + return !SDL_QuitRequested(); } int