wiisx - autoboot games?

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

Feb 3, 2011

wiisx - autoboot games? by WhyoWhy at 4:53 AM (653 Views / 0 Likes) 2 replies

  1. WhyoWhy
    OP

    Newcomer WhyoWhy Newbie

    Joined:
    Feb 7, 2010
    Messages:
    9
    Country:
    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

    Member Taleweaver Storywriter

    Joined:
    Dec 23, 2009
    Messages:
    5,121
    Location:
    Belgium
    Country:
    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

    Member matguitarist GBAtemp Fan

    Joined:
    Oct 14, 2008
    Messages:
    458
    Location:
    Canada
    Country:
    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.
     

Share This Page