exit to loader from within program

Understanding the language, error messages, etc.

exit to loader from within program

Postby noah » Sun Aug 07, 2016 12:56 pm

Hi,
Is there any function, like gb.begin(), that allows me to instantly exit to the sd card? It doesn't say anything in the reference, but there must be something because it is used in gb.titleScreen().

thanks in advance, noah 8-)
User avatar
noah
 
Posts: 25
Joined: Mon Jul 25, 2016 8:32 am
Location: Spiffin' Britain

Re: exit to loader from within program

Postby Sutchig » Sun Aug 07, 2016 7:16 pm

Hi,
the answer is in
https://github.com/Rodot/Gamebuino/blob ... ebuino.cpp

gb.changeGame() should do it (untested)
Sutchig
 
Posts: 67
Joined: Sat May 23, 2015 3:48 pm

Re: exit to loader from within program

Postby Sorunome » Sun Aug 07, 2016 11:20 pm

Yes, as mentioned in the reference, gb.changeGame() is indeed the correct call.
User avatar
Sorunome
 
Posts: 629
Joined: Sun Mar 01, 2015 1:58 pm

Re: exit to loader from within program

Postby noah » Tue Aug 09, 2016 10:24 am

How embarrasing, I read through the reference but must have missed that :?
Thanks anyway :D
User avatar
noah
 
Posts: 25
Joined: Mon Jul 25, 2016 8:32 am
Location: Spiffin' Britain


Return to Programming Questions

Who is online

Users browsing this forum: No registered users and 16 guests

cron