#172916 - Stephanie - Thu Mar 11, 2010 4:25 pm
I'm trying to make my homebrew programs return to the firmware menu in a simple and elegant way.
I've read with great interest through the information about HBMenu, and that works very well, in that I can test to see if the exit to menu function exists (if bootcode->bootsig != 0) then I can call exit(0) and that works perfectly.
When there is no exit to menu though, I want to be able to load & execute the appropriate firmware file... for example I use an acekard so I want my program to be able to load/execute fat0:/akmenu4.nds
I've been able to use the directory example to learn how to scan the card's root directory, so I can look for the appropriate firmware files, but I don't know how to actually load or execute them. I know it can be done as I've seen other homebrews do this - like gbexploader, run it then hit B to cancel and it loads the firmware menu.
So I can figure out what is the correct file to return to the firmware, I just can't figure out what I need to do, to load/execute the desired file.
Is there a tutorial, or an example, on how to load&run an NDS from within another NDS?
Thanks!
-Stephanie
I've read with great interest through the information about HBMenu, and that works very well, in that I can test to see if the exit to menu function exists (if bootcode->bootsig != 0) then I can call exit(0) and that works perfectly.
When there is no exit to menu though, I want to be able to load & execute the appropriate firmware file... for example I use an acekard so I want my program to be able to load/execute fat0:/akmenu4.nds
I've been able to use the directory example to learn how to scan the card's root directory, so I can look for the appropriate firmware files, but I don't know how to actually load or execute them. I know it can be done as I've seen other homebrews do this - like gbexploader, run it then hit B to cancel and it loads the firmware menu.
So I can figure out what is the correct file to return to the firmware, I just can't figure out what I need to do, to load/execute the desired file.
Is there a tutorial, or an example, on how to load&run an NDS from within another NDS?
Thanks!
-Stephanie