mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
Create RARCH_MENU_CTL_DESTROY
This commit is contained in:
parent
bfef1c816f
commit
88a1f48cc3
3
driver.c
3
driver.c
@ -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();
|
||||
}
|
||||
/**
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user