Homebrew cia shortcuts?

Discussion in '3DS - Homebrew Development and Emulators' started by xtheman, Mar 1, 2016.

  1. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    Hello. I saw a thread that modded the homebrew launcher cia that would boot to gateway. So I was thinking that if you could mod the payload to boot into gateway.3dsx then you could mod to boot into any .3dsx file. This would be useful for those who have romhacks for hans (and know how to make romhack shortcuts to hans in .3dsx), Homebrew that may never get a .cia port, and lots of other things. I could also see this be useful for those with CTRbootmanger and have boot time for 1 second. So would want to know is it possible? Also would it be worth while? (Also if this should go into cfw and flashcarts section then mods please move it)
     
  2. zbw2000

    zbw2000 GBAtemp Fan

    Member
    350
    98
    Aug 28, 2014
    United States
    So basically something like .wad forwarders on the wii. That actually sounds like it would be pretty useful. The only problem I see though is that a payload has to be loaded before a .3dsx can launch. I think that could be solved though by just bundling the payload with the .cia itself.
     
    Derverd likes this.
  3. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    I understand that. But I meant modding the payload so It can boot a file named something other boot.3dsx. Like say I wanted to boot myhomebrew.3dsx or something. The cia homebrew mod for gateway booted gw.3dsx and I would think you could do the same thing.
     
  4. zbw2000

    zbw2000 GBAtemp Fan

    Member
    350
    98
    Aug 28, 2014
    United States
    I know that with the yellows8 cia homebrew laumcher you can hex edit the payload to boot a different .3dsx file from the root of the sd.
     
  5. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    I might be able to do something about that. If only I had the payload for the cia. I would have it on my sd card but i can't access my 3ds right this minute. Are all payloads the same if it is the same system version and region version?
     
  6. Ev1l0rd

    Ev1l0rd (⌐◥▶◀◤) Knight of Void

    Member
    1,038
    821
    Oct 26, 2015
    Netherlands
    Land of Darkness and Bounty
    The only unfortunate part is that yellows8 downloads the payload from his own server and as a result there are a few restrictions:
    • You have to mod the launcher with each system update, as each update has a different payload.
    • When you hex edit the payload, it has to be the exact same length as the .3dsx for HBL. So nothing longer than four letters.

    There is one other thing that is interesting though:
    • lpp-3ds, the lua engine used to make most homebrew, has a .elf file included. I know that there is a way to convert a .elf to a .cia, but I'm not sure how. Also, that .elf is set-up to only use index.lua, so no other files can be included and as such, you will likely need to edit most programs to use files using absolute paths from the SD card, rather than relative ones.
     
  7. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    If you install it to sysnand the you wouldn't be updating as it may mess up your 3ds

    That is still a lot of different names you can make.
     
  8. Ev1l0rd

    Ev1l0rd (⌐◥▶◀◤) Knight of Void

    Member
    1,038
    821
    Oct 26, 2015
    Netherlands
    Land of Darkness and Bounty
    Yeah, but most people use EmuNAND to install the HBL to ;).

    Agreed. But eventually you will end up with filenames such as: aqwi.3dsx.

    Also, the amount of names you can make is 26⁴ = 456976. Which doesn't count capitalization and numbers in it, so the actual number is even more.
     
    Last edited by Ev1l0rd, Mar 1, 2016
  9. zbw2000

    zbw2000 GBAtemp Fan

    Member
    350
    98
    Aug 28, 2014
    United States
    I thought it was just an otherapp payload?
     
  10. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    SO i want to try something out but I don't have access to my 3ds right now. What is the simplest way to test it? (and no i don't want to try citra)
     
  11. zbw2000

    zbw2000 GBAtemp Fan

    Member
    350
    98
    Aug 28, 2014
    United States
    You could get someone else to do it
     
  12. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    Ok so I figured out how to change what the hb launcher cia boots into but i have one problem: Most people (including me) would like the homebrew they will boot into with the cia separate from the main hb launcher cia. So basically I would want to make a cia that boots into a different payload named differently. (So each cia has its own payload that would boot into that homebrew only) I have a good idea on what to try but i'm not %100 about it yet and can't test it yet (Man i really should have my 3ds with me).
     
  13. Derverd

    Derverd GBAtemp Regular

    Member
    172
    32
    Dec 22, 2014
    Mars?
    I've always wanted a tool that creates a .cia and payload with custom .3dsx directory, .3dsx name, unique id and banner. I use the lesshax payload so I currently have yellows original hbl launcher and the gateway one which I use for a homebrew launcher and decrypt9 (I edited the banner of the gateway .cia so it doesn't look crap).

    Anyone who can create this should totally do it, their name will be in the songs of men for years to come (I've probably been watching too much Game of Thrones lately, sorry?).
     
  14. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    The main reason I made this post was so i could figure out a few things. I always wanted to develop homebrew but i don't have the time and patience. I figured editing the HB launcher cia was a good way to get started and learn some things. (plus nobody have made anything on how to do that which is a real surprise)
     
  15. Derverd

    Derverd GBAtemp Regular

    Member
    172
    32
    Dec 22, 2014
    Mars?
    Search up the source of the .cia hbl, you have to edit the source and compile it, You can't edit the .cia. I think he gave a few pointers on there on what to do.
     
  16. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    I have it. Actually I figured out how but I don't have a 3ds to test it on right now so its kinda pointless to make a how to if I'm not %100 sure and haven't tested it. (it was actually easier then i thought)
     
  17. Derverd

    Derverd GBAtemp Regular

    Member
    172
    32
    Dec 22, 2014
    Mars?
    I can test if you want? What have you changed?
     
  18. xtheman
    OP

    xtheman GBAtemp Guru

    Member
    5,847
    5,280
    Jan 28, 2016
    United States
    Just enough B-). But really i have changed what payload hb launcher is looking for and what the payload boots. Pm me your firmware and region. I still have to compile it so it might take a little (I'm not "good" at programming stuff and all that)
     
  19. Columbo2811

    Columbo2811 GBAtemp Maniac

    Member
    1,378
    829
    Jul 19, 2015