I am currently writing an app for the wiz but for some reason its not exiting to the menu. i am using the exit script from the example file and can't seem to find whats stopping it...
I have tried clearing any more calls at the end of the file but no use... it appears to exit fine its just the signal to restart the menu never gos threw.
any ideas? i have tryed calling SDL_Quit() before return to no effect...
I have tried clearing any more calls at the end of the file but no use... it appears to exit fine its just the signal to restart the menu never gos threw.
Code:
//at exit is set in main function
atexit(Terminate);
// Terminate contents Note: it is inside a header file so perhaps is unreachable?
void Terminate(void){
SDL_Quit();
#ifdef GP2X
chdir("/usr/gp2x");
execl("/usr/gp2x/gp2xmenu", "/usr/gp2x/gp2xmenu", NULL);
#endif
#ifdef WIN32
fprintf (stdout, "\nExit to menu...\n");
#endif
}
//Exit is triggerd by exiting the main loop. the only other code is return 0;