#165383 - chishm - Fri Dec 19, 2008 1:49 am
Now that we have support for passing arguments to loaded programs, there's a desire to allow the loaded program to return back to the menu without resetting the console. This will allow a quasi-plugin system with the menu providing a file selection list for various other programs such as media players, emulators and the like.
So the question is: what is the best way to provide return-to-loader functionality? There are various aspects to consider.
One aspect is how the program knows which menu to load. Should this be done by putting the menu return stub in a standard location on disc, or should the path be passed to the program as the 2nd or last argument?
Another aspect is the format of the return stub. Should it be a complete NDS file that needs to be loaded and run by the returning program in the same way that the program was loaded, or should it be a custom binary format that is loaded into memory at a specific location and jumped to?
There are advantages and disadvantages to each of these methods, and I want to hear other people's opinions before biasing them with my own. Keep in mind that once this is decided on it won't be easy to change.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com
So the question is: what is the best way to provide return-to-loader functionality? There are various aspects to consider.
One aspect is how the program knows which menu to load. Should this be done by putting the menu return stub in a standard location on disc, or should the path be passed to the program as the 2nd or last argument?
Another aspect is the format of the return stub. Should it be a complete NDS file that needs to be loaded and run by the returning program in the same way that the program was loaded, or should it be a custom binary format that is loaded into memory at a specific location and jumped to?
There are advantages and disadvantages to each of these methods, and I want to hear other people's opinions before biasing them with my own. Keep in mind that once this is decided on it won't be easy to change.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com