Homebrew Homebrew app Homebrew app just opens and closes

wilburie

Member
OP
Newcomer
Joined
May 11, 2023
Messages
21
Trophies
0
XP
62
Country
United States
So I homebrewed my new 2DS XL (via Luma3DS) and it worked perfectly. I have some homebrew apps already installed, and i tried to make my own.

I have the program up and running, the title and icon both work, but it just gives me a black screen for about 4 seconds, and then returns to the HB launcher.
Here's my code:

1683835122310.png


And the two built SMDH and 3DSX files are in a folder called "TestAppHB", like this:

1683835195910.png


As I said, it loads up and shows as an app on the HB menu fine, but when I run it, it doesn't work.
 

fluffycat420

Member
Newcomer
Joined
Feb 7, 2023
Messages
14
Trophies
0
Age
16
XP
428
Country
Canada
i think you need opeing curly brackets from the beginning of the if kdown statement like this

if (kDown & KEY_START);
{
break; //Break in order to return to hbmenu
}

you might not need a semi colon at the end of your if statement too btw
 

wilburie

Member
OP
Newcomer
Joined
May 11, 2023
Messages
21
Trophies
0
XP
62
Country
United States
i think you need opeing curly brackets from the beginning of the if kdown statement like this

if (kDown & KEY_START);
{
break; //Break in order to return to hbmenu
}

you might not need a semi colon at the end of your if statement too btw
Hey, it works now! Thanks! :)
 

wilburie

Member
OP
Newcomer
Joined
May 11, 2023
Messages
21
Trophies
0
XP
62
Country
United States
So, I said that it worked because it didn't give me any warnings during the build... But this happens.

IMG_20230515_133351546[1].jpg


Anyway i can make it print "Hello, world!" one time and then wait until they return to the HBM? (press the start button)
 

fluffycat420

Member
Newcomer
Joined
Feb 7, 2023
Messages
14
Trophies
0
Age
16
XP
428
Country
Canada
So, I said that it worked because it didn't give me any warnings during the build... But this happens.

View attachment 371545

Anyway i can make it print "Hello, world!" one time and then wait until they return to the HBM? (press the start button)
place it outside of aptmainloop, like this

while (aptMainLoop())
{
//stuff goes here
}

//now here put your printf statement
 

wilburie

Member
OP
Newcomer
Joined
May 11, 2023
Messages
21
Trophies
0
XP
62
Country
United States
place it outside of aptmainloop, like this

while (aptMainLoop())
{
//stuff goes here
}

//now here put your printf statement

Well, that didn't work. But I did some experimenting of my own, and instead of placing it AFTER the loop I placed it BEFORE. Works perfectly now! Thanks for the help!

Also, In case you know...

How can i print custom images to the top and bottom screen?
 

fluffycat420

Member
Newcomer
Joined
Feb 7, 2023
Messages
14
Trophies
0
Age
16
XP
428
Country
Canada
Well, that didn't work. But I did some experimenting of my own, and instead of placing it AFTER the loop I placed it BEFORE. Works perfectly now! Thanks for the help!

Also, In case you know...

How can i print custom images to the top and bottom screen?
citro2d, don't know how to but i've heard it's pretty simple.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Having every channel is fun lol
  • D @ diamondsofmayhem:
    Actually, finally found someone who was looking for the same thing. https://gbatemp.net/threads/lost-hyrule-warriors-legends-v1-6-0-ntr-plugin.628141/ to no avail.
  • D @ diamondsofmayhem:
    well, sorry for bugging yall with this.
  • Xdqwerty @ Xdqwerty:
    good night
  • Sicklyboy @ Sicklyboy:
    sup nerds
    +1
  • BigOnYa @ BigOnYa:
    Sup dawg, watching old rap vids so feel like I gotta talk...Real
  • BigOnYa @ BigOnYa:
    Not really just funny. I'm definitely a nerd!
  • ShinyLuxio @ ShinyLuxio:
    Hi there, it's any way to recover original LFCS if I don't have a NAND backup?
  • ShinyLuxio @ ShinyLuxio:
    Bought second hand 3DS, it seems it was "unbanned" but that was before I bought it
  • K3Nv2 @ K3Nv2:
    I got these in today for $20 stink buds they aren't that bad https://a.co/d/fOMSn8g
    +1
  • ShinyLuxio @ ShinyLuxio:
    @BigOnYa thanks but my question isn't there
  • BigOnYa @ BigOnYa:
    You ask your questions there, create a new thread if its not already answered, then eventually a 3ds genius will respond.
  • ShinyLuxio @ ShinyLuxio:
    I will, thanks
    +1
  • BigOnYa @ BigOnYa:
    No prob and btw, welcome to gbatemp! :grog:
  • BigOnYa @ BigOnYa:
    @K3Nv2 I got some cheapies at wallys, that are pretty good, already have lost a few expensive ones (one falls out and gone, can't find) while cutting grass so bought some cheap ones, and of course never lose these cheap ones. (Cheap meaning only $35, compared to air buds which I only have 1 of 2 now)
  • BigOnYa @ BigOnYa:
    They need to add air tags to they airbuds..
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa the airtags are bigger than the airpods, they won't fit
    +1
  • BigOnYa @ BigOnYa:
    Be cool tech tho. Of course they want to lose them anyways. Buy and buy again.
  • K3Nv2 @ K3Nv2:
    Apple could make a find my AirPods thing pretty easily
    +1
  • BigOnYa @ BigOnYa:
    You would think, esp using bluetooth, not GPS, like a "your getting hot-er" meter on your phone.
  • BigOnYa @ BigOnYa:
    I think they should tie up diddy, and let all the victims come and abuse him, we'll make a holiday of it every year. (jk, maybe)
  • BigOnYa @ BigOnYa:
    Crazy, the rich get away with this shit, and I can't shit without the poop police checking my asshole every time I shit, or if i have my toilet seatbelt on.
    BigOnYa @ BigOnYa: Crazy, the rich get away with this shit, and I can't shit without the poop police checking my...