From 5ed2561c910308a0b5a4d4621e35f2a3806c30eb Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 22 Jun 2008 22:30:50 +0000 Subject: [PATCH] wait for button release after save load git-svn-id: file:///home/notaz/opt/svn/PicoDrive@490 be3aeb3a-fb24-0410-a615-afba39da0efa --- platform/gizmondo/menu.c | 2 ++ platform/gp2x/menu.c | 2 ++ platform/linux/port_config.h | 2 +- platform/psp/menu.c | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/gizmondo/menu.c b/platform/gizmondo/menu.c index 64222e58..1c74589a 100644 --- a/platform/gizmondo/menu.c +++ b/platform/gizmondo/menu.c @@ -1430,6 +1430,7 @@ static void menu_loop_root(void) if (rom_loaded) { if(savestate_menu_loop(1)) continue; + while (Framework_PollGetButtons() & BTN_PLAY) Sleep(50); engineState = PGS_Running; return; } @@ -1437,6 +1438,7 @@ static void menu_loop_root(void) case MA_MAIN_RESET_GAME: if (rom_loaded) { emu_ResetGame(); + while (Framework_PollGetButtons() & BTN_PLAY) Sleep(50); engineState = PGS_Running; return; } diff --git a/platform/gp2x/menu.c b/platform/gp2x/menu.c index 4b3201e5..05d09035 100644 --- a/platform/gp2x/menu.c +++ b/platform/gp2x/menu.c @@ -1545,6 +1545,7 @@ static void menu_loop_root(void) if (rom_loaded) { if(savestate_menu_loop(1)) continue; + while (gp2x_joystick_read(1) & GP2X_B) usleep(50*1000); engineState = PGS_Running; return; } @@ -1552,6 +1553,7 @@ static void menu_loop_root(void) case MA_MAIN_RESET_GAME: if (rom_loaded) { emu_ResetGame(); + while (gp2x_joystick_read(1) & GP2X_B) usleep(50*1000); engineState = PGS_Running; return; } diff --git a/platform/linux/port_config.h b/platform/linux/port_config.h index efc732e3..21e5b32d 100644 --- a/platform/linux/port_config.h +++ b/platform/linux/port_config.h @@ -15,7 +15,7 @@ #define SIMPLE_WRITE_SOUND 0 #define mix_32_to_16l_stereo_lvl mix_32_to_16l_stereo -#define EL_LOGMASK (EL_ANOMALY|EL_STATUS|EL_SRAMIO|EL_EEPROM|EL_UIO|EL_YMTIMER)//|EL_VDPDMA|EL_HVCNT|EL_ASVDP)//|EL_SVP) +#define EL_LOGMASK (EL_ANOMALY|EL_STATUS|EL_SRAMIO|EL_EEPROM|EL_UIO)//|EL_VDPDMA|EL_HVCNT|EL_ASVDP)//|EL_SVP) // EL_VDPDMA|EL_ASVDP|EL_SR) // |EL_BUSREQ|EL_Z80BNK) //#define dprintf(f,...) printf("%05i:%03i: " f "\n",Pico.m.frame_count,Pico.m.scanline,##__VA_ARGS__) diff --git a/platform/psp/menu.c b/platform/psp/menu.c index 4cb0b4ba..744c99d0 100644 --- a/platform/psp/menu.c +++ b/platform/psp/menu.c @@ -1627,6 +1627,7 @@ static void menu_loop_root(void) if (rom_loaded) { if(savestate_menu_loop(1)) continue; + while (psp_pad_read(1) & BTN_CIRCLE) psp_msleep(50); engineState = PGS_Running; return; } @@ -1634,6 +1635,7 @@ static void menu_loop_root(void) case MA_MAIN_RESET_GAME: if (rom_loaded) { emu_ResetGame(); + while (psp_pad_read(1) & BTN_CIRCLE) psp_msleep(50); engineState = PGS_Running; return; } -- 2.39.5