From cbcea3ecb8135e48729018c0757723b4be025a05 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 27 Aug 2014 15:35:59 +0200 Subject: [PATCH] (Menu) Refactor menu_settings_iterate --- frontend/menu/backend/menu_common_backend.c | 24 +-------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/frontend/menu/backend/menu_common_backend.c b/frontend/menu/backend/menu_common_backend.c index 716c932ec6..7372b84b30 100644 --- a/frontend/menu/backend/menu_common_backend.c +++ b/frontend/menu/backend/menu_common_backend.c @@ -1271,29 +1271,7 @@ static int menu_settings_iterate(unsigned action, rarch_setting_t *setting) menu_type == MENU_SETTINGS_OPEN_HISTORY)) { driver.menu->need_refresh = false; - if ( - menu_type == MENU_SETTINGS_INPUT_OPTIONS - || menu_type == MENU_SETTINGS_PATH_OPTIONS - || menu_type == MENU_SETTINGS_OVERLAY_OPTIONS - || menu_type == MENU_SETTINGS_NETPLAY_OPTIONS - || menu_type == MENU_SETTINGS_USER_OPTIONS - || menu_type == MENU_SETTINGS_OPTIONS - || menu_type == MENU_SETTINGS_DRIVERS - || menu_type == MENU_SETTINGS_PERFORMANCE_COUNTERS - || menu_type == MENU_SETTINGS_PERFORMANCE_COUNTERS_FRONTEND - || menu_type == MENU_SETTINGS_PERFORMANCE_COUNTERS_LIBRETRO - || menu_type == MENU_SETTINGS_CORE_INFO - || menu_type == MENU_SETTINGS_CORE_OPTIONS - || menu_type == MENU_SETTINGS_AUDIO_OPTIONS - || menu_type == MENU_SETTINGS_DISK_OPTIONS - || menu_type == MENU_SETTINGS_PRIVACY_OPTIONS - || menu_type == MENU_SETTINGS_GENERAL_OPTIONS - || menu_type == MENU_SETTINGS_VIDEO_OPTIONS - || menu_type == MENU_SETTINGS_FONT_OPTIONS - || menu_type == MENU_SETTINGS_SHADER_OPTIONS - || menu_type == MENU_SETTINGS_SHADER_PARAMETERS - || menu_type == MENU_SETTINGS_SHADER_PRESET_PARAMETERS - ) + if (menu_common_type_is(menu_type) == MENU_SETTINGS) menu_common_entries_init(driver.menu, menu_type); else menu_common_entries_init(driver.menu, MENU_SETTINGS);