GodMode9/source/main.c
2017-08-23 13:31:17 +02:00

16 lines
290 B
C

#include "godmode.h"
#include "power.h"
#include "pxi.h"
void main(int argc, char** argv)
{
(void) argv; // unused for now
// Wait for ARM11
PXI_WaitRemote(PXI_READY);
// Run the main program
if (GodMode(argc) == GODMODE_EXIT_REBOOT) Reboot();
else PowerOff();
}