fix Ctrl+C not SIGINT'ing, I think

This commit is contained in:
CasualPokePlayer 2023-10-24 07:34:42 -07:00
parent 736abf32ac
commit edcd2cd548
1 changed files with 7 additions and 0 deletions

View File

@ -174,6 +174,13 @@ namespace BizHawk.Client.EmuHawk
StringLogUtil.DefaultToDisk = initialConfig.Movies.MoviesOnDisk;
// must be done VERY early, before any SDL_Init calls can be done
// if this isn't done, SIGINT/SIGTERM get swallowed by SDL
if (OSTailoredCode.IsUnixHost)
{
SDL2.SDL.SDL_SetHint(SDL2.SDL.SDL_HINT_NO_SIGNAL_HANDLERS, "1");
}
var glInitCount = 0;
IGL TryInitIGL(EDispMethod dispMethod)