Beispiel #1
0
void launchTitleFromMenu(menu_s* m) {
    menuEntry_s* me = getMenuEntry(m, m->selectedEntry);

    if (me) {
        if (me->title_id) {
            if (me->title_id > 0) {
                createTitleInfoFromTitleID(me->title_id, me->mediatype, &target_title);

//                titleInfo_s* ret = NULL;
//                ret = getTitleWithID(&titleBrowser, me->title_id);

//                if (ret) {
//                    target_title = *ret;
                    targetProcessId = -2;
                    exitServices();
                    dieImmediately = true;

                    if (hansTitleBoot) {
                        bootApp("/gridlauncher/hans/hans.3dsx", NULL, HansArg);
                    }

                    else {
                        regionFreeRun2(me->title_id & 0xffffffff, (me->title_id >> 32) & 0xffffffff, me->mediatype, 0x1);
                    }
//                }
            }
        }
        else {
Beispiel #2
0
void waitForStartAndExit()
{
    printf("Press start to exit\n");
    waitForStart();
    exitServices();
}