Homebrew Creating Game Shortcuts In Homebrew Menu With HANS?

smealum

growing up sucks.
Member
Joined
May 1, 2006
Messages
635
Trophies
2
Age
31
Location
SF
Website
www.smealum.net
XP
2,516
Country
United States
i will try to write some proper documentation for the xml descriptor and shortcut format but it's pretty straightforward. here's the eshop shortcut example :

Code:
<shortcut>
    <executable>/3ds/hans/hans.3dsx</executable>
    <icon>/3ds/eshop.smdh</icon>
    <arg>-f/3ds/hans/titles/eshop.txt</arg>
</shortcut>
<targets selectable="false">
    <title mediatype="0">0004001000020900</title>
    <title mediatype="0">0004001000021900</title>
    <title mediatype="0">0004001000022900</title>
    <title mediatype="0">0004001000027900</title>
    <title mediatype="0">0004001000028900</title>
</targets>

basically the executable field points to the 3DSX you want the shortcut to run (in this case HANS), the icon points to the SMDH and arg is the argument that will be fed to the 3DSX. in this case, HANS interprets the argument as "load configuration file /3ds/hans/titles/eshop.txt instead of the default one for this target application". this also makes HANS try to load /hans/eshop.romfs and /hans/eshop.code if those options are enabled, instead of /hans/00021900.romfs, which can be helpful if you want to have multiple romhacks for the same game. (for example you could have rutile.romfs and smea.romfs for rutile ruby and ORAS smea edition)

the second section is the list of titles HANS should run under. essentially, it's just an identifier for the game you want a shortcut to. you can find the identifier for your game on the HANS configuration screen. the mediatype should be set to 0 for a NAND title, 1 for an SD title and 2 for a gamecard. you can have multiple titles in the list so that you can handle different regions, or allow HANS to run under either the SD or gamecard version of your title. there's a priority order : HANS will launch the first title in the list it can, so the titles at the beginning of the list essentially have higher priority than the ones below.


hope this helps.
 

ClassicGame1995

Active Member
OP
Newcomer
Joined
Aug 3, 2015
Messages
28
Trophies
0
Age
29
XP
599
Country
United States
i will try to write some proper documentation for the xml descriptor and shortcut format but it's pretty straightforward. here's the eshop shortcut example :

Code:
<shortcut>
    <executable>/3ds/hans/hans.3dsx</executable>
    <icon>/3ds/eshop.smdh</icon>
    <arg>-f/3ds/hans/titles/eshop.txt</arg>
</shortcut>
<targets selectable="false">
    <title mediatype="0">0004001000020900</title>
    <title mediatype="0">0004001000021900</title>
    <title mediatype="0">0004001000022900</title>
    <title mediatype="0">0004001000027900</title>
    <title mediatype="0">0004001000028900</title>
</targets>

basically the executable field points to the 3DSX you want the shortcut to run (in this case HANS), the icon points to the SMDH and arg is the argument that will be fed to the 3DSX. in this case, HANS interprets the argument as "load configuration file /3ds/hans/titles/eshop.txt instead of the default one for this target application". this also makes HANS try to load /hans/eshop.romfs and /hans/eshop.code if those options are enabled, instead of /hans/00021900.romfs, which can be helpful if you want to have multiple romhacks for the same game. (for example you could have rutile.romfs and smea.romfs for rutile ruby and ORAS smea edition)

the second section is the list of titles HANS should run under. essentially, it's just an identifier for the game you want a shortcut to. you can find the identifier for your game on the HANS configuration screen. the mediatype should be set to 0 for a NAND title, 1 for an SD title and 2 for a gamecard. you can have multiple titles in the list so that you can handle different regions, or allow HANS to run under either the SD or gamecard version of your title. there's a priority order : HANS will launch the first title in the list it can, so the titles at the beginning of the list essentially have higher priority than the ones below.


hope this helps.
Got it working! Thanks for the help smea and olshrimpeyes I really appreciate it.
scr_9_BOTTOM.png
 

Spatchy

Active Member
Newcomer
Joined
Oct 17, 2015
Messages
37
Trophies
0
Age
24
Location
Kent, UK
XP
75
Country
The shortcut for the eShop is not showing up in HB launcher even though the xml and smdh are both on my sd card and hans runs fine... (yes I am running *hax 2.5)
 
  • Like
Reactions: Margen67

Spatchy

Active Member
Newcomer
Joined
Oct 17, 2015
Messages
37
Trophies
0
Age
24
Location
Kent, UK
XP
75
Country
The shortcut for the eShop is not showing up in HB launcher even though the xml and smdh are both on my sd card and hans runs fine... (yes I am running *hax 2.5)

Don't worry, I found the solution, I just redownloaded the boot.3dsx and it worked - If anyone was having this problem, just redownload it from smealum.github.io/3ds


how did you get the icon? does it default to the apps icon or did you make an smdh?
If you are talking about the eShop, there should already be an smdh (and xml) in the 3ds folder. if you are talking about your own mods then yes, you need to make one yourself.
 
Last edited by Spatchy,
  • Like
Reactions: Margen67

suloku

Well-Known Member
Member
Joined
Apr 28, 2008
Messages
883
Trophies
0
XP
866
Country
can you make a homebrew, that can make shortcuts, without your launcher?

What's the point of making an stripped version when the only difference would be not needing to touch the title launcher button? Launch it from wherever, create the shortcuts, then exit (use the L+R+DOWN+B combo, the launcher config files won't be written that way too).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, on that android PC?