Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autolaunch for Art Academy & Karaoke #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add autolaunch for Art Academy & Karaoke #115

wants to merge 1 commit into from

Conversation

Destiny1984
Copy link

Just a dirty copy and paste for both titles with their TitleIDs.

Need someone to test.

@Hartie95
Copy link

Hartie95 commented Jun 1, 2016

Wouldn't it be better to do it it in an more variable way?
I thought about something like this:

int launchApplication(u32 launchMode)
{
    u32 availableTitleIDs=0;
    u32 rundisk=0;
    u32 gameindex=0;
    u64 titleIDs[][3]= {
        //smash
        {
            0x0005000010145000,//EUR
            0x0005000010144F00,//USA
            0x0005000010110E00 //JAP
        },
        //Karaoke
        {
            0x0005000010149600,//EUR
            0x0005000010100D00,
            0x0005000010102500 
        },
        //Art
        {
            0x000500001017B500,//EUR
            0x000500001017BF00,//USA
            0x000500001017BE00 //JAP
        }
    };
    switch(launchMode)
    {
        case LOADIINE_MODE_SMASH_BROS :
            availableTitleIDs=3;
            gameindex=0;
            rundisk=1;
            break;
        case LOADIINE_MODE_KARAOKE:
            availableTitleIDs=3;
            gameindex=1;
            break;
        case LOADIINE_MODE_ART_ATELIER:
            availableTitleIDs=3;
            gameindex=2;
            rundisk=1;
            break;
        default:
            return 255;
    }


    while(availableTitleIDs--)
    {
        if(SYSCheckTitleExists(titleIDs[gameindex][availableTitleIDs]))
        {
            SYSLaunchTitle(titleIDs[gameindex][availableTitleIDs]);
            return 0;
        }
    }
    if(rundisk)
    {
        char buf_vol_odd[20];
        strcpy(buf_vol_odd, "/vol/storage_odd03");
        _SYSLaunchTitleByPathFromLauncher(buf_vol_odd, 18, 0);
    }
} 

Its just something quick i wrote to give an example of what I'm meaning, and maybe its not fully completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants