X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fmenu.c;h=b3dc27a86d79b9172f9237d14c26869628f92418;hb=1413b9a1185543e6fff7a3f67c5b8cdfec4b7eee;hp=2775859386b7de75f1fb514759113abb9bfe7aae;hpb=147f8df11490ebc6381be8038778898102074b34;p=picodrive.git diff --git a/platform/common/menu.c b/platform/common/menu.c index 2775859..b3dc27a 100644 --- a/platform/common/menu.c +++ b/platform/common/menu.c @@ -439,6 +439,7 @@ void debug_menu_loop(void) if ((inp & (BTN_WEST|BTN_LEFT)) == (BTN_WEST|BTN_LEFT)) { mkdir("dumps", 0777); PDebugDumpMem(); + while (inp & BTN_WEST) inp = read_buttons_async(BTN_WEST); dumped = 1; } break; @@ -447,6 +448,13 @@ void debug_menu_loop(void) if (inp & BTN_RIGHT) PicoDrawMask ^= PDRAW_LAYERA_ON; if (inp & BTN_DOWN) PicoDrawMask ^= PDRAW_SPRITES_LOW_ON; if (inp & BTN_UP) PicoDrawMask ^= PDRAW_SPRITES_HI_ON; + if (inp & BTN_EAST) { + PsndOut = NULL; // just in case + PicoSkipFrame = 1; + PicoFrame(); + PicoSkipFrame = 0; + while (inp & BTN_EAST) inp = read_buttons_async(BTN_EAST); + } break; case 3: if (inp & BTN_DOWN) spr_offs++;