GodMode9/source/main.c

22 lines
452 B
C
Raw Normal View History

#include "godmode.h"
2017-06-09 01:45:00 +02:00
#include "power.h"
2017-08-22 23:23:17 -03:00
#include "pxi.h"
void main(int argc, char** argv)
{
(void) argv; // unused for now
2017-08-22 23:23:17 -03:00
// Wait for ARM11
PXI_WaitRemote(PXI_READY);
#ifdef AUTORUN_SCRIPT
// Run the script runner
if (ScriptRunner(argc) == GODMODE_EXIT_REBOOT) Reboot();
else PowerOff();
#else
2017-07-26 21:39:30 +02:00
// Run the main program
if (GodMode(argc) == GODMODE_EXIT_REBOOT) Reboot();
2017-07-29 15:30:46 +02:00
else PowerOff();
#endif
}