mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Menu) Refactor ST_DIR options
This commit is contained in:
parent
9646f8c9e5
commit
1b94c167e9
@ -3088,6 +3088,16 @@ static int menu_common_setting_set(unsigned id, unsigned action, rarch_setting_t
|
||||
else
|
||||
menu_common_setting_set_current_fraction(setting, action);
|
||||
}
|
||||
else if (setting && setting->type == ST_DIR)
|
||||
{
|
||||
if (action == MENU_ACTION_START)
|
||||
{
|
||||
*setting->value.string = '\0';
|
||||
|
||||
if (setting->change_handler)
|
||||
setting->change_handler(setting);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (id)
|
||||
@ -3374,27 +3384,6 @@ 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:
|
||||
case MENU_FILTER_DIR_PATH:
|
||||
case MENU_DSP_FILTER_DIR_PATH:
|
||||
if (action == MENU_ACTION_START)
|
||||
{
|
||||
*setting->value.string = '\0';
|
||||
|
||||
if (setting->change_handler)
|
||||
setting->change_handler(setting);
|
||||
}
|
||||
break;
|
||||
case MENU_SETTINGS_DRIVER_VIDEO:
|
||||
if (action == MENU_ACTION_LEFT)
|
||||
find_prev_video_driver();
|
||||
|
Loading…
x
Reference in New Issue
Block a user