(Menu) Cleanups

This commit is contained in:
twinaphex 2014-08-27 15:31:28 +02:00
parent ed14651b2e
commit 7e939b1b6b
1 changed files with 49 additions and 53 deletions

View File

@ -1064,7 +1064,7 @@ static int menu_start_screen_iterate(unsigned action)
static unsigned menu_common_type_is(unsigned type)
{
bool type_found =
if (
type == MENU_SETTINGS ||
type == MENU_SETTINGS_GENERAL_OPTIONS ||
type == MENU_SETTINGS_CORE_OPTIONS ||
@ -1086,21 +1086,19 @@ static unsigned menu_common_type_is(unsigned type)
type == MENU_SETTINGS_PERFORMANCE_COUNTERS ||
type == MENU_SETTINGS_PERFORMANCE_COUNTERS_LIBRETRO ||
type == MENU_SETTINGS_PERFORMANCE_COUNTERS_FRONTEND ||
(type == MENU_SETTINGS_INPUT_OPTIONS);
if (type_found)
type == MENU_SETTINGS_INPUT_OPTIONS
)
return MENU_SETTINGS;
type_found = (
if (
(
type >= MENU_SETTINGS_SHADER_0 &&
type <= MENU_SETTINGS_SHADER_LAST &&
(((type - MENU_SETTINGS_SHADER_0) % 3) == 0)) ||
type == MENU_SETTINGS_SHADER_PRESET;
if (type_found)
type == MENU_SETTINGS_SHADER_PRESET)
return MENU_SETTINGS_SHADER_OPTIONS;
type_found =
if (
type == MENU_BROWSER_DIR_PATH ||
type == MENU_CONTENT_DIR_PATH ||
type == MENU_ASSETS_DIR_PATH ||
@ -1116,9 +1114,7 @@ static unsigned menu_common_type_is(unsigned type)
type == MENU_SCREENSHOT_DIR_PATH ||
type == MENU_AUTOCONFIG_DIR_PATH ||
type == MENU_EXTRACTION_DIR_PATH ||
type == MENU_SYSTEM_DIR_PATH;
if (type_found)
type == MENU_SYSTEM_DIR_PATH)
return MENU_FILE_DIRECTORY;
return 0;
@ -2675,7 +2671,7 @@ static unsigned menu_common_shader_manager_get_type(const struct gfx_shader *sha
if (!shader)
{
RARCH_ERR("Cannot get shader type, shader handle is not initialized.\n");
return type;
return RARCH_SHADER_NONE;
}
for (i = 0; i < shader->passes; i++)