From 69c460bbec4ae336943df301905215b8c10565d9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 7 Apr 2013 00:31:12 +0200 Subject: [PATCH] (RMenu) Set 'selected' to FIRST_VIDEO_SETTING after selecting 'Change Game' in Ingame Menu --- frontend/menu/rmenu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/menu/rmenu.c b/frontend/menu/rmenu.c index 3e916b522a..faeef700b4 100644 --- a/frontend/menu/rmenu.c +++ b/frontend/menu/rmenu.c @@ -1507,6 +1507,8 @@ static bool osk_callback_enter_filename_init(void *data) #endif #endif +static uint8_t selected = 0; + static int set_setting_action(uint8_t menu_type, unsigned switchvalue, uint64_t input) { DEVICE_CAST device_ptr = (DEVICE_CAST)driver.video_data; @@ -2348,6 +2350,7 @@ static int set_setting_action(uint8_t menu_type, unsigned switchvalue, uint64_t { g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU); g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU_INGAME_EXIT); + selected = FIRST_VIDEO_SETTING; return 0; } break; @@ -2395,8 +2398,6 @@ static int set_setting_action(uint8_t menu_type, unsigned switchvalue, uint64_t return 0; } -static uint8_t selected = 0; - static int select_setting(uint8_t menu_type, uint64_t input) { static uint8_t first_setting = FIRST_VIDEO_SETTING;