2016-02-29 22:28:18 +01:00
|
|
|
#include <string.h>
|
2016-10-19 17:56:50 +02:00
|
|
|
#include <coreinit/title.h>
|
2016-02-29 22:28:18 +01:00
|
|
|
#include "common/common.h"
|
|
|
|
#include "utils/utils.h"
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
static volatile uint8_t ucRunOnce = 0;
|
|
|
|
|
2016-10-19 17:56:50 +02:00
|
|
|
int main(int argc, char **argv)
|
2016-02-29 22:28:18 +01:00
|
|
|
{
|
|
|
|
//! *******************************************************************
|
|
|
|
//! * Check if our application is started *
|
|
|
|
//! *******************************************************************
|
2016-10-19 17:56:50 +02:00
|
|
|
/*
|
2016-02-29 22:28:18 +01:00
|
|
|
if (OSGetTitleID != 0 &&
|
|
|
|
OSGetTitleID() != 0x000500101004A200 && // mii maker eur
|
|
|
|
OSGetTitleID() != 0x000500101004A100 && // mii maker usa
|
|
|
|
OSGetTitleID() != 0x000500101004A000) // mii maker jpn
|
|
|
|
return EXIT_RELAUNCH_ON_LOAD;
|
|
|
|
|
|
|
|
//! check if application needs a re-load
|
|
|
|
if(ucRunOnce) {
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|
|
|
|
ucRunOnce = 1;
|
2016-10-19 17:56:50 +02:00
|
|
|
*/
|
2016-02-29 22:28:18 +01:00
|
|
|
//! *******************************************************************
|
|
|
|
//! * Jump to our application *
|
|
|
|
//! *******************************************************************
|
|
|
|
return Menu_Main();
|
|
|
|
}
|