uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 56d08285b76eb35af5a0a6cf29fdd194f1dd186f
parent 79262774fec8fa5054f1b5bb0f38ec51439e89d2
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Tue, 31 May 2022 12:25:25 -0700

Fix for hanging on quit

Diffstat:
Msrc/uxnemu.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -511,12 +511,7 @@ main(int argc, char **argv) if(!loaded && !start(&u, "launcher.rom")) return error("usage", "uxnemu [-s scale] file.rom"); run(&u); -#ifdef _WIN32 -#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" - TerminateThread((HANDLE)SDL_GetThreadID(stdin_thread), 0); -#else - close(0); /* make stdin thread exit */ -#endif + SDL_WaitThread(stdin_thread, NULL); SDL_Quit(); return 0; }