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
413
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
413
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
413
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
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
    The Real Jdbye @ The Real Jdbye: you can report it and request deletion