2017-10-16 11:55:29 +02:00
|
|
|
#include <stdio.h>
|
2024-07-29 18:15:08 +02:00
|
|
|
#include <stdlib.h>
|
2017-10-16 11:55:29 +02:00
|
|
|
#include <ogcsys.h>
|
|
|
|
|
2024-07-26 23:14:29 +02:00
|
|
|
#include "restart.h"
|
2017-10-16 11:55:29 +02:00
|
|
|
#include "nand.h"
|
|
|
|
#include "sys.h"
|
|
|
|
#include "wpad.h"
|
|
|
|
#include "video.h"
|
|
|
|
|
2024-07-26 23:14:29 +02:00
|
|
|
void Restart_Wait(void)
|
2017-10-16 11:55:29 +02:00
|
|
|
{
|
2024-07-26 23:14:29 +02:00
|
|
|
puts("\n Press any button to exit...");
|
2017-10-16 11:55:29 +02:00
|
|
|
fflush(stdout);
|
|
|
|
|
2024-07-26 23:14:29 +02:00
|
|
|
/* Wait for button */
|
|
|
|
Wpad_WaitButtons();
|
2017-10-16 11:55:29 +02:00
|
|
|
|
2024-07-26 23:14:29 +02:00
|
|
|
Restart();
|
2017-10-16 11:55:29 +02:00
|
|
|
}
|
|
|
|
|
2024-07-26 23:14:29 +02:00
|
|
|
void Restart(void)
|
2017-10-16 11:55:29 +02:00
|
|
|
{
|
2024-07-26 23:14:29 +02:00
|
|
|
Con_Clear();
|
|
|
|
puts("\n Exiting...");
|
2017-10-16 11:55:29 +02:00
|
|
|
fflush(stdout);
|
|
|
|
|
2024-07-26 23:14:29 +02:00
|
|
|
/* Disable NAND emulator */
|
|
|
|
Nand_Disable();
|
2017-10-16 11:55:29 +02:00
|
|
|
|
2024-07-26 23:14:29 +02:00
|
|
|
/* Load system menu */
|
2024-07-29 18:15:08 +02:00
|
|
|
exit(0);
|
2017-10-16 11:55:29 +02:00
|
|
|
}
|