add debug header file #3

Merged
emilyd merged 6 commits from debug_helper into main 2023-07-21 06:37:36 +00:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit d9593f3fa0 - Show all commits

View File

@ -1,4 +1,6 @@
// debug features for libreshop_client
#include <stdio.h>
#include <gccore.h>
#include <wiiuse/wpad.h>
void debug_pause() {
@ -7,3 +9,9 @@ void debug_pause() {
if (WPAD_ButtonsDown(0)) break;
}
}
void debug_npause() {
printf("Press any button to continue...\n");
VIDEO_WaitVSync();
debug_pause();
}

View File

@ -2,5 +2,6 @@
#define DEBUG_H
void debug_pause();
void debug_npause();
#endif