Possible to change entry application for homebrew?

Discussion in 'Wii U - Homebrew' started by PerryStyle, Nov 25, 2017.

  1. PerryStyle
    OP

    PerryStyle Member

    Newcomer
    1
    Oct 12, 2017
    United States
    Hello everyone, I was just wondering if this would work.
    If you were to change the title id of entry.c file, here https://github.com/dimok789/homebrew_launcher/blob/master/src/entry.c to an application that uses the SD card to let's say Smash Bros Wii U. Then make the homebrew.elf with this change, will homebrew now launch threw Super Smash Bros Wii U instead of Mii Maker?

    I got lost in the tutorial on how to compile the .elf in order to test this. I was just wondering if this is a possibility?
     
  2. Ryccardo

    Ryccardo WiiUaboo

    Member
    11
    Feb 13, 2015
    Italy
    Imola
    Yes, that's the theory - although the choice of base title will influence compatibility, if it works similiarly to 3DSX on 3ds
     
  3. CreeperMario

    CreeperMario GBAtemp Advanced Fan

    Member
    4
    Jun 18, 2016
    Australia
    Adelaide, South Australia
    Its a bit more complicated that that, unfortunately. You'd also probably need to change something in the userspace exploit you're using (Browserhax/Haxchi) that causes the other title to launch once HBL's loader program is in memory.
     
    cucholix likes this.
  4. PerryStyle
    OP

    PerryStyle Member

    Newcomer
    1
    Oct 12, 2017
    United States
    So what you are saying is that something has to change in the Browserhax software to launch in order to lets say Super Smash Bros to launch. So when I click on launch on loadiine.ovh it has be programmed to launch Super Smash Bros? Or am I just misinterpreting this and that you can change something in the link you just provided.
     
  5. CreeperMario

    CreeperMario GBAtemp Advanced Fan

    Member
    4
    Jun 18, 2016
    Australia
    Adelaide, South Australia
    You're right, Browserhax itself does need to be changed. So does Haxchi, if you're looking into that as well. The link I provided is for HBL's small loader program.

    When an exploit such as Browserhax is run on your console, it performs the PowerPC kernel exploit, and then stores this loader program (sd_loader as it's officially called) in a small area of unused memory. It then does some kind of modification that causes the Wii U to launch this small loader program instead of Mii Maker when the Mii Maker title is opened.

    This loader program, when run, will load homebrew_launcher.elf from the SD Card and will run it. When HBL exits, it re-launches the Mii Maker title and will decide whether to open another program or to simply launch Mii Maker. And homebrew_launcher.elf itself contains some specific code so that it functions both underneath Mii Maker and as its own title (channel).

    So, in order to use Smash Bros. instead, you would likely need to look for and change some code in:
    • Browserhax, Haxchi and CBHC
    • sd_loader for HBL (this new sd_loader would need to be embedded within Browserhax as well)
    • HBL itself
    Hopefully that helps!