wiisx - autoboot games?

Discussion in 'Wii - Hacking' started by WhyoWhy, Feb 3, 2011.

  1. WhyoWhy
    OP

    WhyoWhy Newbie

    Newcomer
    9
    0
    Feb 7, 2010
    United States
    Like the title says, I'm interested in modifying the wiisx emulator to autoboot directly into individual games.
    All the required files, including the game, would need to be either on an sd card or hdd.

    I'm not sure if any of you are familiar with ti.teg.tnod.I's work, but he's the one that modified vbagx and snesgx to autoboot individual roms and then inserted the dol into a channel to make it resemble a vc release.

    I'm interested in doing the same thing but for wiisx, especially now that a working channel has been released.

    I have a bit of coding knowledge... I'm just looking for a push in the right direction to get started.

    I think it would be pretty sweet to have psone games available to launch from the system menu.
     
  2. Taleweaver

    Taleweaver Storywriter

    Member
    5,566
    1,619
    Dec 23, 2009
    Belgium
    Belgium
    Interesting...I'd be interested in this as well (I only play one or two PSX games anyway).


    I hope you're not planning of trying to make it into a channel as well (most PSX roms are larger than the nand that would store 'em [​IMG] ), but an emulator that automatically loads USB:\wiisx\roms\autoboot.iso (or a similar name) would be nice.


    Unfortunate enough, I don't have any coding experience myself. All I can say is that I hope you'll be using matguitarist's modification as a base (it utilises USB2 loading speed).

    Good luck! [​IMG]
     
  3. matguitarist

    matguitarist GBAtemp Fan

    Member
    458
    0
    Oct 14, 2008
    Canada
    Canada
    Hi guys

    it won't be an easy task to do, you have to modify the GamecubeMain.cpp

    the interresting part is here:


    // loadISO loads an ISO, resets the system and loads the save.
    int loadISO(fileBrowser_file* file)
    {
    // Refresh file pointers
    memset(&isoFile, 0, sizeof(fileBrowser_file));
    memset(&cddaFile, 0, sizeof(fileBrowser_file));
    memset(&subFile, 0, sizeof(fileBrowser_file));

    memcpy(&isoFile, file, sizeof(fileBrowser_file) );

    if(hasLoadedISO) {
    SysClose();
    hasLoadedISO = FALSE;
    }
    if(SysInit() < 0)
    return -1;
    hasLoadedISO = TRUE;
    SysReset();

    char *tempStr = &file->name[0];
    if((strstr(tempStr,".EXE")!=NULL) || (strstr(tempStr,".exe")!=NULL)) {
    Load(file);
    }
    else {
    CheckCdrom();
    LoadCdrom();

    etc ... you'll have to force the program to load the game you want

    for doing that you'll have to modify the fileBrowser.c , take a look at the part :

    // This is the currently loaded CD image
    extern fileBrowser_file isoFile;


    there a lot of comment, the code is easy to read thank to the wii team for giving all that info [​IMG]

    i hope it can help you to start

    try to start with that, i'll try to find some time to help if i can, i'm just a newbie too in coding.