mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-30 09:43:02 +00:00
Fix for hanging on quit
This commit is contained in:
parent
79262774fe
commit
56d08285b7
1 changed files with 1 additions and 6 deletions
|
@ -511,12 +511,7 @@ main(int argc, char **argv)
|
||||||
if(!loaded && !start(&u, "launcher.rom"))
|
if(!loaded && !start(&u, "launcher.rom"))
|
||||||
return error("usage", "uxnemu [-s scale] file.rom");
|
return error("usage", "uxnemu [-s scale] file.rom");
|
||||||
run(&u);
|
run(&u);
|
||||||
#ifdef _WIN32
|
SDL_WaitThread(stdin_thread, NULL);
|
||||||
#pragma GCC diagnostic ignored "-Wint-to-pointer-cast"
|
|
||||||
TerminateThread((HANDLE)SDL_GetThreadID(stdin_thread), 0);
|
|
||||||
#else
|
|
||||||
close(0); /* make stdin thread exit */
|
|
||||||
#endif
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue