End of program..

Post Reply
Kittsune
Posts: 2
Joined: Sat Sep 24, 2011 10:51 pm

End of program..

Post by Kittsune » Sat Sep 24, 2011 10:53 pm

Just a quick question:

What happens when a .nds file terminates? Does the system shut down? Does it return to the flashcart? I don't have a working card to test this on...

mtheall
Posts: 210
Joined: Thu Feb 03, 2011 10:47 pm

Re: End of program..

Post by mtheall » Sun Sep 25, 2011 4:50 am

It depends on what you used to launch it. If you use hbmenu, then when you return from main or exit() then it will return to hbmenu. Some other launcher menus may support this behavior, others may just appear to hang. I don't think I've ever come across a launcher where the power just goes off, but I can't rule it out. Your best bet is to just try it out yourself.

roelforg
Posts: 13
Joined: Thu Sep 22, 2011 5:47 pm

Re: End of program..

Post by roelforg » Sun Sep 25, 2011 10:30 am

My r4ds revo than just shuts down the ds.
Using the launcher that came with the r4ds.
If i do:

Code: Select all

int main()
{
return 0;
}
The ds shuts down after the nds file is loaded.
We all ask nooby questions every once in a while.
Nobody's perfect, we all need help every once in a while.
Our questions might sound stupid to people but then, so do their's to us.
So please, think before calling someone you don't know a noob.

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: End of program..

Post by vuurrobin » Mon Sep 26, 2011 12:31 pm

it returns to menu if the menu supports it and it will shutdown de ds if the menu doesn't support it.


the behaviour used to be undefined usally causing it to hang, but this was changed somewhere in the past.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests