SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 3389f50884a94fcdfbb2c52b1008caa65b7105e8 parent 12ad85355cf924d34bcd88c559401f81569c9d58 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 4 Aug 2023 23:27:53 +0300 Merge pull request #557 from arkie/master Add SIGUSR1 to reload to the SDL frontend Diffstat:
| M | SDL/main.c | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/SDL/main.c b/SDL/main.c @@ -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(SIGUSR1, debugger_reset); SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO); if ((console_supported = CON_start(completer))) {
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.