mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-09 03:00:40 +02:00
Add SIGHUP to reload to the SDL frontend
This commit is contained in:
@@ -555,6 +555,11 @@ static void debugger_interrupt(int ignore)
|
||||
GB_debugger_break(&gb);
|
||||
}
|
||||
|
||||
static void debugger_reset(int ignore)
|
||||
{
|
||||
pending_command = GB_SDL_RESET_COMMAND;
|
||||
}
|
||||
|
||||
static void gb_audio_callback(GB_gameboy_t *gb, GB_sample_t *sample)
|
||||
{
|
||||
if (turbo_down) {
|
||||
@@ -1019,6 +1024,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
signal(SIGINT, debugger_interrupt);
|
||||
signal(SIGHUP, debugger_reset);
|
||||
|
||||
SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO);
|
||||
if ((console_supported = CON_start(completer))) {
|
||||
|
Reference in New Issue
Block a user