Homebrew [Release] Homebrew Launcher with grid layout

  • Thread starter Thread starter mashers
  • Start date Start date
  • Views Views 669,477
  • Replies Replies 4,218
  • Likes Likes 139
Hmm, I'm hoping I can use

Code:
if (aptGetStatus() == APP_SUSPENDING) {
    //Set a flag here to randomise the theme when it wakes up...
}

:)

Edit - no, this doesn't work.

Code:
if (aptGetStatus() == APP_SUSPENDING) {
    logText("About to go to sleep");
}

Nothing appears in the log, so I'm guessing aptGetStatus() isn't returning that value, or it isn't detectable in the main loop :(
 
Last edited by mashers,
  • Like
Reactions: smileyhead
Hmm, aptGetStatus() returns 1 under normal circumstances, which correlates to APP_RUNNING, which is to be expected. However, in my main loop if I add the following:

Code:
if (aptGetStatus() != 1) {
    logIntP(aptGetStatus(), "status", "/status.txt");
}

then I get nothing in the log. This indicates that the main loop is not capable of running during anything other than APP_RUNNING so it can't detect any other states.
 
Just a feature request, is it possible not to go to the first page in title launcher and selector when preloading is finished? And maybe disable wraparound scrolling while preloading?
 
Just a feature request, is it possible not to go to the first page in title launcher and selector when preloading is finished? And maybe disable wraparound scrolling while preloading?
Oh yeah, I need to address that.

I've been experimenting with storing the value of osGetTime() in one variable at the beginning of the main loop, and another at the end of the loop, and then getting the difference between them to find out how long the app has been inside the main loop. I was intending to use that to check if the app has been sleeping (i.e. if more time has passed that the main loop could reasonably be expected to take) but it was unreliable, often changing the theme while the app was actually in use. Increasing the threshold caused it not to change when the app was actually asleep. So I think I need to try to detect when the device is going to sleep / waking up.
 
  • Like
Reactions: SomeGamer
I'm going to have a look at HANS shortcuts today, but I don't have any to test with and don't know how to set them up. Could somebody point me in the right direction for setting up a HANS shortcut for one of the following games (all EUR):

  • ACNL
  • DKC Returns 3D
  • Resident Evil Revalations
  • Mario Kart 7
  • Starfox 64 3D
  • NSMB2
  • SM 3D Land
  • Cubic Ninja :P
 
I'm going to have a look at HANS shortcuts today, but I don't have any to test with and don't know how to set them up. Could somebody point me in the right direction for setting up a HANS shortcut for one of the following games (all EUR):

  • ACNL
  • DKC Returns 3D
  • Resident Evil Revalations
  • Mario Kart 7
  • Starfox 64 3D
  • NSMB2
  • SM 3D Land
  • Cubic Ninja :P
So do you have the xml example for the shop.xml drag that to your desktop

<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>


it should look like that

<shortcut>
<executable>/3ds/hans/hans.3dsx</executable>
<icon>/3ds/StarSapphire.smdh</icon>
<arg>-f/3ds/hans/titles/ssapphire.txt</arg>
</shortcut>
<targets selectable="false">
<title mediatype="2">000400000011C500</title>
<title mediatype="1">000400000011C500</title>
</targets>


that is my star sapphire now the media type 2 is for physical while media type 1 is for digital

--------------------- MERGED ---------------------------

@mashers you may be wondering where 000400000011C500 go. One is for 000400000011C500.romsfs and the other is for 000400000011C500.code (only for my game) Dump your game with brain dump to get the romsf then after that put it in a folder called hans and the root of you sd
 
  • Like
Reactions: SomeGamer
Thanks mate. Where do you get the values for the cart's title? And what do you do with the XML file?
you can get the values inside hans. and you place the xml files inside the 3ds folder along with the .smdc for the icon if one it wanted
 
Last edited by BurningDesire,
Thanks guys. I'm going to try creating one now and test in Suloku's launcher to make sure it works then have a go getting it to work in gridlauncher once I've merged the commits from smea's launcher which enable the shortcuts :)
it takes about 30min to dump a game. So have fun. Your British right. Grab a cup of tea and a scone and sit back :P
 
it takes about 30min to dump a game. So have fun. Your British right. Grab a cup of tea and a scone and sit back :P
lol sterotyping much? :P
That's like saying to an aussie "go throw another shrimp on the barbie"...fyi, 1. we don't say that and 2. THEY'RE CALLED PRAWNS! lol

anyway, sorta back on track... 30 mins to dump a game? braindump had a speedup has it?
 
lol sterotyping much? :P
That's like saying to an aussie "go throw another shrimp on the barbie"...fyi, 1. we don't say that and 2. THEY'RE CALLED PRAWNS! lol

anyway, sorta back on track... 30 mins to dump a game? braindump had a speedup has it?
a big one:)

btw i know i was stereotyping it was intended hahaha.

--------------------- MERGED ---------------------------

I didn't know what the shortcuts did, remember ;)

Ok, can I put values in <icon> and <arg> even if the smdh and arg files don't actually exist? Will that allow the user to save the HANS config to that location if desired?
<icon>/3ds/StarSapphire.smdh</icon>
<arg>-f/3ds/hans/titles/ssapphire.txt</arg>


yes i think you can leave the icon blank. who wouldn't want a pretty icon though ... and I'm not to sure about arg leave that blank i think it is created automagicly... Don't quote me on that though. Well, what do you mean by values
 

Site & Scene News

Popular threads in this forum