mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(PS3/RMenu) fixed menu toggle issues/crashes
This commit is contained in:
parent
59fa5eafb1
commit
4ce9e580eb
@ -2267,13 +2267,6 @@ int ingame_menu(void *data, void *state)
|
|||||||
menu_idx = 0;
|
menu_idx = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((input & (1ULL << RMENU_DEVICE_NAV_L3)) && (input & (1ULL << RMENU_DEVICE_NAV_R3)))
|
|
||||||
{
|
|
||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);
|
|
||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU_INGAME_EXIT);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
display_menubar(current_menu);
|
display_menubar(current_menu);
|
||||||
|
|
||||||
device_ptr->font_ctx->render_msg_place(device_ptr,default_pos.x_position, default_pos.comment_y_position, default_pos.font_size, WHITE, strw_buffer);
|
device_ptr->font_ctx->render_msg_place(device_ptr,default_pos.x_position, default_pos.comment_y_position, default_pos.font_size, WHITE, strw_buffer);
|
||||||
@ -2411,8 +2404,11 @@ int rmenu_input_process(void *data, void *state)
|
|||||||
|
|
||||||
if (return_to_game_enable)
|
if (return_to_game_enable)
|
||||||
{
|
{
|
||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);
|
if (!(g_extern.lifecycle_mode_state & (1ULL << MODE_MENU_INGAME)))
|
||||||
return -1;
|
{
|
||||||
|
g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2494,7 +2490,10 @@ bool rmenu_iterate(void)
|
|||||||
|
|
||||||
menu_stack_force_refresh();
|
menu_stack_force_refresh();
|
||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU_DRAW);
|
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU_DRAW);
|
||||||
|
|
||||||
|
#ifndef __CELLOS_LV2__
|
||||||
device_ptr->ctx_driver->rmenu_init();
|
device_ptr->ctx_driver->rmenu_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_MENU_PREINIT);
|
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_MENU_PREINIT);
|
||||||
}
|
}
|
||||||
@ -2567,7 +2566,9 @@ deinit:
|
|||||||
|
|
||||||
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_MENU_DRAW);
|
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_MENU_DRAW);
|
||||||
|
|
||||||
|
#ifndef __CELLOS_LV2__
|
||||||
device_ptr->ctx_driver->rmenu_free();
|
device_ptr->ctx_driver->rmenu_free();
|
||||||
|
#endif
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user