static void processMenuOption(int menuopt) { switch(menuopt) { case EXIT : killMenuLanguages(); MODPlay_Unload (&mod_track); Free_Voice(); WPAD_Shutdown(); GRRLIB_Stop(); saveConfig(FILE_CFG); // if we have been launched from a channel then reset to menu if (!*((u32*) 0x80001800)) { WII_Initialize(); WII_ReturnToMenu(); } else { // else the homebrew is launched from a loader so exit back to the loader exit(0); } break; case ONE_PLAYER_GAME : case TWO_PLAYER_COOP : case TWO_PLAYER_VERSUS : main_mode=GAME; initGame(menuopt); break; } if(menuopt>=MUSIC_BAR && menuopt<=(MUSIC_BAR+64)) { MODPlay_SetVolume( &mod_track, opt_music, opt_music); } }
void exitme(void) { if (loaderhbc) { WII_Initialize(); if (WII_LaunchTitle(0x0001000148415858ULL) < 0) { if (WII_LaunchTitle(0x000100014A4F4449ULL) < 0) WII_ReturnToMenu(); } } else { WII_ReturnToMenu(); } }