YAWM-ModMii-Edition/source/restart.c
Naim2000 3e8fb363e4 folder operations, changed more instances of restart to exit, ...
...adjusted button mapping to include 2, probably something else
2024-07-29 11:15:08 -05:00

34 lines
459 B
C

#include <stdio.h>
#include <stdlib.h>
#include <ogcsys.h>
#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();
puts("\n Exiting...");
fflush(stdout);
/* Disable NAND emulator */
Nand_Disable();
/* Load system menu */
exit(0);
}