diff --git a/source/restart.c b/source/restart.c index d979817..e0895c1 100644 --- a/source/restart.c +++ b/source/restart.c @@ -1,16 +1,27 @@ #include #include +#include "restart.h" #include "nand.h" #include "sys.h" #include "wpad.h" #include "video.h" +void Restart_Wait(void) +{ + puts("\n Press any button to exit..."); + fflush(stdout); + + /* Wait for button */ + Wpad_WaitButtons(); + + Restart(); +} void Restart(void) { - Con_Clear (); - printf("\n Restarting Wii..."); + Con_Clear(); + puts("\n Exiting..."); fflush(stdout); /* Disable NAND emulator */ @@ -19,18 +30,3 @@ void Restart(void) /* Load system menu */ Sys_LoadMenu(); } - -void Restart_Wait(void) -{ - printf("\n"); - - printf(" Press any button to restart..."); - fflush(stdout); - - /* Wait for button */ - Wpad_WaitButtons(); - - /* Restart */ - Restart(); -} -