SIG_IGN->SIG_DFL, fixes usb storage mode
authornotaz <notasas@gmail.com>
Sun, 3 Jun 2007 16:44:14 +0000 (16:44 +0000)
committernotaz <notasas@gmail.com>
Sun, 3 Jun 2007 16:44:14 +0000 (16:44 +0000)
git-svn-id: file:///home/notaz/opt/svn/fceu@151 be3aeb3a-fb24-0410-a615-afba39da0efa

drivers/gp2x/gp2x-sound.c
drivers/gp2x/main.c
drivers/gp2x/minimal.c

index cb5e0d9..e188873 100644 (file)
@@ -56,7 +56,7 @@ uint32 GetWriteSound(void)
 
 int KillSound(void)
 {
-       FCEUI_Sound(0);
+       //FCEUI_Sound(0);
 
        return 1;
 }
index 21cdea5..cbd8679 100644 (file)
@@ -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;
index e11643e..86bfdfb 100644 (file)
@@ -325,14 +325,14 @@ void gp2x_deinit(void)
        gp2x_memregs[0x2912>>1] = gp2x_screenaddr_old[2];\r
        gp2x_memregs[0x2914>>1] = gp2x_screenaddr_old[3];\r
 \r
+       gp2x_usbjoy_deinit();\r
+\r
        munmap(gp2x_screens[0], FRAMEBUFF_WHOLESIZE);\r
        munmap((void *)gp2x_memregs, 0x10000);\r
        close(memdev);\r
        close(mixerdev);\r
        if (sounddev > 0) close(sounddev);\r
 \r
-       gp2x_usbjoy_deinit();\r
-\r
        printf("all done, running ");\r
 \r
        // Zaq121's alternative frontend support from MAME\r