mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Menu) refactor menu_action_ok
This commit is contained in:
parent
c5ebf22bfc
commit
3452eb76e7
@ -1266,7 +1266,6 @@ static int menu_setting_ok_toggle(unsigned type,
|
||||
!strcmp(label, "detect_core_list")
|
||||
)
|
||||
{
|
||||
driver.menu->defer_core = (!strcmp(label, "detect_core_list"));
|
||||
menu_entries_push(driver.menu->menu_stack,
|
||||
g_settings.menu_content_directory, label, MENU_FILE_DIRECTORY,
|
||||
driver.menu->selection_ptr);
|
||||
@ -1914,9 +1913,8 @@ static int menu_action_ok(const char *dir,
|
||||
menu_entries_push(driver.menu->menu_stack,
|
||||
cat_path, menu_label, type, driver.menu->selection_ptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (driver.menu->defer_core)
|
||||
else if (!strcmp(label, "detect_core_list")
|
||||
&& type == MENU_FILE_PLAIN)
|
||||
{
|
||||
const core_info_t *info = NULL;
|
||||
int ret = rarch_defer_core(info, g_extern.core_info,
|
||||
@ -1953,7 +1951,6 @@ static int menu_action_ok(const char *dir,
|
||||
driver.menu->msg_force = true;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user