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:
    But you said pine apple...
  • Psionic Roshambo @ Psionic Roshambo:
    Ughh gonna be bored today, class for new job has a lot of networking material and I'm certified in that already...
  • Veho @ Veho:
    Peen apple.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    "pine unf apple" doesn't count! Lol
  • Psionic Roshambo @ Psionic Roshambo:
    Employee code of conduct videos are awesome!!! Did you know eating the other employees is bad? I didn't know... Lol
    +1
  • AncientBoi @ AncientBoi:
    Anymore males there? :blush:
  • Psionic Roshambo @ Psionic Roshambo:
    All of us lol
  • Psionic Roshambo @ Psionic Roshambo:
    I got free every channel so that's awesome lol
    +1
  • AncientBoi @ AncientBoi:
    Give me ALL the gay pron channels, since you won't be watching them :blush::D
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Lol they exist?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Hmmm so Mario Does Luigi's plumbing is a bad movie? Lol
  • Psionic Roshambo @ Psionic Roshambo:
    These videos are soooo dry
  • Psionic Roshambo @ Psionic Roshambo:
    Please click all suspicious links sent your email
    +1
  • BigOnYa @ BigOnYa:
    What to do today? Cut grass for 3-4 hours, or just get drunk and play video games... Hmm
    +1
  • BigOnYa @ BigOnYa:
    I need a remote controlled mower, so I can sit on the couch and do both.
  • BigOnYa @ BigOnYa:
    Sounds good to me, video games and booze it is then.
    +1
  • denpafan @ denpafan:
    Good choice
    +1
  • BigOnYa @ BigOnYa:
    Now what to play, Starfield or Fallout4. And what to drink, beer or Whiskey and Coke. Such tough decisions.
  • BigOnYa @ BigOnYa:
    Looks like its whiskey & coke, only 4 beers left. And think ill start with Falllout. :grog:
  • rqkaiju2 @ rqkaiju2:
    THIS IMAGE IS SO SCARY WTF. THAT SURE AS HELL IS NOT A CAT THATS LIKE A FUCKING DEMON

    Untitled2.png
  • Psionic Roshambo @ Psionic Roshambo:
    Bonus points for running things over with the lawn mower?
    Psionic Roshambo @ Psionic Roshambo: Bonus points for running things over with the lawn mower?