From a151467bc7145909e1381d998a47655fa0785acf Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 28 Oct 2015 16:58:20 +0100 Subject: [PATCH] menu_setting_set_flags - handles string option settings now --- menu/menu.h | 1 + menu/menu_setting.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/menu.h b/menu/menu.h index cda5c903e5..27dd77c56a 100644 --- a/menu/menu.h +++ b/menu/menu.h @@ -118,6 +118,7 @@ typedef enum MENU_SETTING_ACTION_LOADSTATE, MENU_SETTING_ACTION_SCREENSHOT, MENU_SETTING_ACTION_RESET, + MENU_SETTING_STRING_OPTIONS, MENU_SETTING_GROUP, MENU_SETTING_SUBGROUP, MENU_SETTING_HORIZONTAL_MENU, diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 44f96d5655..1f6f6a0b88 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -486,11 +486,10 @@ int menu_setting_set_flags(rarch_setting_t *setting) if (!setting) return 0; - if (flags & SD_FLAG_IS_DRIVER) - return MENU_SETTING_DRIVER; - switch (menu_setting_get_type(setting)) { + case ST_STRING_OPTIONS: + return MENU_SETTING_STRING_OPTIONS; case ST_ACTION: return MENU_SETTING_ACTION; case ST_PATH: