step-frame added to debug
[libpicofe.git] / common / menu.c
index 2775859..b3dc27a 100644 (file)
@@ -439,6 +439,7 @@ void debug_menu_loop(void)
                                if ((inp & (BTN_WEST|BTN_LEFT)) == (BTN_WEST|BTN_LEFT)) {\r
                                        mkdir("dumps", 0777);\r
                                        PDebugDumpMem();\r
+                                       while (inp & BTN_WEST) inp = read_buttons_async(BTN_WEST);\r
                                        dumped = 1;\r
                                }\r
                                break;\r
@@ -447,6 +448,13 @@ void debug_menu_loop(void)
                                if (inp & BTN_RIGHT) PicoDrawMask ^= PDRAW_LAYERA_ON;\r
                                if (inp & BTN_DOWN)  PicoDrawMask ^= PDRAW_SPRITES_LOW_ON;\r
                                if (inp & BTN_UP)    PicoDrawMask ^= PDRAW_SPRITES_HI_ON;\r
+                               if (inp & BTN_EAST) {\r
+                                       PsndOut = NULL; // just in case\r
+                                       PicoSkipFrame = 1;\r
+                                       PicoFrame();\r
+                                       PicoSkipFrame = 0;\r
+                                       while (inp & BTN_EAST) inp = read_buttons_async(BTN_EAST);\r
+                               }\r
                                break;\r
                        case 3:\r
                                if (inp & BTN_DOWN)  spr_offs++;\r