Create RARCH_MENU_CTL_DESTROY

This commit is contained in:
twinaphex 2015-12-06 17:15:32 +01:00
parent bfef1c816f
commit 88a1f48cc3
3 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,9 @@ void driver_free(void)
video_driver_ctl(RARCH_DISPLAY_CTL_DESTROY, NULL);
audio_driver_ctl(RARCH_AUDIO_CTL_DESTROY, NULL);
input_driver_ctl(RARCH_INPUT_CTL_DESTROY, NULL);
#ifdef HAVE_MENU
menu_driver_ctl(RARCH_MENU_CTL_DESTROY, NULL);
#endif
retro_uninit_libretro_cbs();
}
/**

View File

@ -383,6 +383,9 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
break;
case RARCH_MENU_CTL_IS_ALIVE:
return menu_driver_alive;
case RARCH_MENU_CTL_DESTROY:
menu_driver_ctx = NULL;
break;
case RARCH_MENU_CTL_SET_OWN_DRIVER:
menu_driver_data_own = true;
break;

View File

@ -69,6 +69,7 @@ enum rarch_menu_ctl_state
RARCH_MENU_CTL_SET_ALIVE,
RARCH_MENU_CTL_UNSET_ALIVE,
RARCH_MENU_CTL_IS_ALIVE,
RARCH_MENU_CTL_DESTROY,
RARCH_MENU_CTL_IS_SET_TEXTURE,
RARCH_MENU_CTL_SET_OWN_DRIVER,
RARCH_MENU_CTL_UNSET_OWN_DRIVER,