mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(menu_common_backend.c) Cut down on code duplication
This commit is contained in:
parent
0f12c67054
commit
288a4af1b0
@ -1271,13 +1271,9 @@ static int menu_setting_ok_toggle(unsigned type,
|
|||||||
driver.menu->selection_ptr);
|
driver.menu->selection_ptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (!strcmp(label, "history_list"))
|
else if (!strcmp(label, "history_list") ||
|
||||||
{
|
menu_common_type_is(label, type) == MENU_FILE_DIRECTORY
|
||||||
menu_entries_push(driver.menu->menu_stack,
|
)
|
||||||
"", label, type, driver.menu->selection_ptr);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else if (menu_common_type_is(label, type) == MENU_FILE_DIRECTORY)
|
|
||||||
{
|
{
|
||||||
menu_entries_push(driver.menu->menu_stack,
|
menu_entries_push(driver.menu->menu_stack,
|
||||||
"", label, type, driver.menu->selection_ptr);
|
"", label, type, driver.menu->selection_ptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user