mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
(Menu) Group some more settings in big switch
This commit is contained in:
parent
728b18a9fe
commit
77b2fe4910
@ -3659,22 +3659,6 @@ static int menu_common_setting_set(unsigned id, unsigned action, rarch_setting_t
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MENU_BROWSER_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.menu_content_directory = '\0';
|
||||
break;
|
||||
case MENU_CONTENT_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.content_directory = '\0';
|
||||
break;
|
||||
case MENU_ASSETS_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.assets_directory = '\0';
|
||||
break;
|
||||
case MENU_SCREENSHOT_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.screenshot_directory = '\0';
|
||||
break;
|
||||
case MENU_SAVEFILE_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
strlcpy(g_extern.savefile_dir, g_defaults.sram_dir, sizeof(g_extern.savefile_dir));
|
||||
@ -3689,8 +3673,17 @@ static int menu_common_setting_set(unsigned id, unsigned action, rarch_setting_t
|
||||
if (action == MENU_ACTION_START)
|
||||
strlcpy(g_extern.savestate_dir, g_defaults.savestate_dir, sizeof(g_extern.savestate_dir));
|
||||
break;
|
||||
case MENU_BROWSER_DIR_PATH:
|
||||
case MENU_CONTENT_DIR_PATH:
|
||||
case MENU_ASSETS_DIR_PATH:
|
||||
case MENU_SCREENSHOT_DIR_PATH:
|
||||
case MENU_LIBRETRO_DIR_PATH:
|
||||
case MENU_LIBRETRO_INFO_DIR_PATH:
|
||||
case MENU_CONFIG_DIR_PATH:
|
||||
case MENU_SHADER_DIR_PATH:
|
||||
case MENU_SYSTEM_DIR_PATH:
|
||||
case MENU_AUTOCONFIG_DIR_PATH:
|
||||
case MENU_EXTRACTION_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
{
|
||||
*setting->value.string = '\0';
|
||||
@ -3699,10 +3692,6 @@ static int menu_common_setting_set(unsigned id, unsigned action, rarch_setting_t
|
||||
setting->change_handler(setting);
|
||||
}
|
||||
break;
|
||||
case MENU_CONFIG_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.menu_config_directory = '\0';
|
||||
break;
|
||||
case MENU_FILTER_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.video.filter_dir = '\0';
|
||||
@ -3711,22 +3700,6 @@ static int menu_common_setting_set(unsigned id, unsigned action, rarch_setting_t
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.audio.filter_dir = '\0';
|
||||
break;
|
||||
case MENU_SHADER_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.video.shader_dir = '\0';
|
||||
break;
|
||||
case MENU_SYSTEM_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.system_directory = '\0';
|
||||
break;
|
||||
case MENU_AUTOCONFIG_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.input.autoconfig_dir = '\0';
|
||||
break;
|
||||
case MENU_EXTRACTION_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
*g_settings.extraction_directory = '\0';
|
||||
break;
|
||||
case MENU_SETTINGS_DRIVER_VIDEO:
|
||||
if (action == MENU_ACTION_LEFT)
|
||||
find_prev_video_driver();
|
||||
|
Loading…
x
Reference in New Issue
Block a user