mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 05:56:07 +00:00
Reorder this code a bit
This commit is contained in:
parent
c9c4c77d38
commit
dd8d01a1cb
@ -700,12 +700,14 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
|
||||
}
|
||||
break;
|
||||
case RARCH_MENU_CTL_CONTEXT_RESET:
|
||||
if (menu_driver_ctx && menu_driver_ctx->context_reset)
|
||||
menu_driver_ctx->context_reset(menu_userdata);
|
||||
if (!menu_driver_ctx || !menu_driver_ctx->context_reset)
|
||||
return false;
|
||||
menu_driver_ctx->context_reset(menu_userdata);
|
||||
break;
|
||||
case RARCH_MENU_CTL_CONTEXT_DESTROY:
|
||||
if (menu_driver_ctx && menu_driver_ctx->context_destroy)
|
||||
menu_driver_ctx->context_destroy(menu_userdata);
|
||||
if (!menu_driver_ctx || !menu_driver_ctx->context_destroy)
|
||||
return false;
|
||||
menu_driver_ctx->context_destroy(menu_userdata);
|
||||
break;
|
||||
case RARCH_MENU_CTL_SHADER_MANAGER_INIT:
|
||||
menu_shader_manager_init(menu_driver_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user