diff --git a/source/debug.c b/source/debug.c index 4267b1a..e90429c 100644 --- a/source/debug.c +++ b/source/debug.c @@ -1,4 +1,6 @@ // debug features for libreshop_client +#include +#include #include 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(); +} diff --git a/source/debug.h b/source/debug.h index d92d22b..4ba7dba 100644 --- a/source/debug.h +++ b/source/debug.h @@ -2,5 +2,6 @@ #define DEBUG_H void debug_pause(); +void debug_npause(); #endif diff --git a/source/main.c b/source/main.c index ac52100..b7478b9 100644 --- a/source/main.c +++ b/source/main.c @@ -32,8 +32,10 @@ void logprint(int type, char *message) { break; case 2: printf("\x1b[34m[\x1b[31m--\x1b[34m]"); + break; case 3: printf("\x1b[31m!!\x1b[34m]"); + break; default: printf(" "); } @@ -74,6 +76,9 @@ int main(int argc, char **argv) { printheader(); logprint(0, "Welcome to LibreShop!\n"); +#ifdef DEBUG_H + logprint(2, "Warning! You are running a DEBUG build.\n"); +#endif logprint(0, "Initializing network.\n"); ret = if_config(localip, netmask, gateway, TRUE, 20);