From cc981841a776591c07d199609f15096248d3f79c Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 3 Jun 2007 16:44:14 +0000 Subject: [PATCH] SIG_IGN->SIG_DFL, fixes usb storage mode git-svn-id: file:///home/notaz/opt/svn/fceu@151 be3aeb3a-fb24-0410-a615-afba39da0efa --- drivers/gp2x/gp2x-sound.c | 2 +- drivers/gp2x/main.c | 2 +- drivers/gp2x/minimal.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gp2x/gp2x-sound.c b/drivers/gp2x/gp2x-sound.c index cb5e0d9..e188873 100644 --- a/drivers/gp2x/gp2x-sound.c +++ b/drivers/gp2x/gp2x-sound.c @@ -56,7 +56,7 @@ uint32 GetWriteSound(void) int KillSound(void) { - FCEUI_Sound(0); + //FCEUI_Sound(0); return 1; } diff --git a/drivers/gp2x/main.c b/drivers/gp2x/main.c index 21cdea5..cbd8679 100644 --- a/drivers/gp2x/main.c +++ b/drivers/gp2x/main.c @@ -452,7 +452,7 @@ static int DriverInitialize(void) static void DriverKill(void) { // SaveConfig(NULL); // done explicitly in menu now - SetSignals(SIG_IGN); + SetSignals(SIG_DFL); if(cpalette) free(cpalette); cpalette=0; diff --git a/drivers/gp2x/minimal.c b/drivers/gp2x/minimal.c index e11643e..86bfdfb 100644 --- a/drivers/gp2x/minimal.c +++ b/drivers/gp2x/minimal.c @@ -325,14 +325,14 @@ void gp2x_deinit(void) gp2x_memregs[0x2912>>1] = gp2x_screenaddr_old[2]; gp2x_memregs[0x2914>>1] = gp2x_screenaddr_old[3]; + gp2x_usbjoy_deinit(); + munmap(gp2x_screens[0], FRAMEBUFF_WHOLESIZE); munmap((void *)gp2x_memregs, 0x10000); close(memdev); close(mixerdev); if (sounddev > 0) close(sounddev); - gp2x_usbjoy_deinit(); - printf("all done, running "); // Zaq121's alternative frontend support from MAME -- 2.39.2