mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-19 01:12:33 +00:00
(Menu) Add type MENU_FILE_DRIVER
This commit is contained in:
parent
35dd24654f
commit
f1ccf07603
@ -487,14 +487,7 @@ static void handle_setting(rarch_setting_t *setting,
|
||||
else if (action == MENU_ACTION_RIGHT)
|
||||
find_next_resampler_driver();
|
||||
}
|
||||
else if (
|
||||
!strcmp(setting->name, "video_driver") ||
|
||||
!strcmp(setting->name, "audio_driver") ||
|
||||
!strcmp(setting->name, "input_driver") ||
|
||||
!strcmp(setting->name, "camera_driver") ||
|
||||
!strcmp(setting->name, "location_driver") ||
|
||||
!strcmp(setting->name, "menu_driver")
|
||||
)
|
||||
else if (id == MENU_FILE_DRIVER)
|
||||
handle_driver(setting->name, setting->value.string,
|
||||
setting->size, action);
|
||||
}
|
||||
|
@ -61,6 +61,7 @@ typedef enum
|
||||
MENU_FILE_DIRECTORY,
|
||||
MENU_FILE_PATH,
|
||||
MENU_FILE_DEVICE,
|
||||
MENU_FILE_DRIVER,
|
||||
MENU_FILE_LINEFEED,
|
||||
MENU_FILE_LINEFEED_SWITCH,
|
||||
MENU_FILE_CORE,
|
||||
|
@ -151,6 +151,8 @@ static int setting_set_flags(rarch_setting_t *setting)
|
||||
return MENU_FILE_LINEFEED;
|
||||
if (setting->flags & SD_FLAG_PUSH_ACTION)
|
||||
return MENU_FILE_SWITCH;
|
||||
if (setting->flags & SD_FLAG_IS_DRIVER)
|
||||
return MENU_FILE_DRIVER;
|
||||
if (setting->type == ST_PATH)
|
||||
return MENU_FILE_PATH;
|
||||
return 0;
|
||||
|
@ -2293,20 +2293,20 @@ rarch_setting_t *setting_data_get_list(void)
|
||||
|
||||
START_GROUP("Driver Options")
|
||||
START_SUB_GROUP("State", GROUP_NAME)
|
||||
CONFIG_STRING(g_settings.input.driver, "input_driver", "Input Driver", config_get_default_input(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.video.driver, "video_driver", "Video Driver", config_get_default_video(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.input.driver, "input_driver", "Input Driver", config_get_default_input(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
CONFIG_STRING(g_settings.video.driver, "video_driver", "Video Driver", config_get_default_video(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
#ifdef HAVE_OPENGL
|
||||
CONFIG_STRING(g_settings.video.gl_context, "video_gl_context", "OpenGL Context Driver", "", GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.video.gl_context, "video_gl_context", "OpenGL Context Driver", "", GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
#endif
|
||||
CONFIG_STRING(g_settings.audio.driver, "audio_driver", "Audio Driver", config_get_default_audio(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.audio.driver, "audio_driver", "Audio Driver", config_get_default_audio(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
CONFIG_STRING(g_settings.audio.resampler, "audio_resampler_driver", "Audio Resampler Driver", config_get_default_audio_resampler(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.camera.driver, "camera_driver", "Camera Driver", config_get_default_camera(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.location.driver, "location_driver", "Location Driver", config_get_default_location(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.camera.driver, "camera_driver", "Camera Driver", config_get_default_camera(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
CONFIG_STRING(g_settings.location.driver, "location_driver", "Location Driver", config_get_default_location(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
#ifdef HAVE_MENU
|
||||
CONFIG_STRING(g_settings.menu.driver, "menu_driver", "Menu Driver", config_get_default_menu(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.menu.driver, "menu_driver", "Menu Driver", config_get_default_menu(), GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
#endif
|
||||
CONFIG_STRING(g_settings.input.joypad_driver, "input_joypad_driver", "Joypad Driver", "", GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.input.keyboard_layout, "input_keyboard_layout", "Keyboard Layout", "", GROUP_NAME, SUBGROUP_NAME, NULL, NULL)
|
||||
CONFIG_STRING(g_settings.input.joypad_driver, "input_joypad_driver", "Joypad Driver", "", GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
CONFIG_STRING(g_settings.input.keyboard_layout, "input_keyboard_layout", "Keyboard Layout", "", GROUP_NAME, SUBGROUP_NAME, NULL, NULL) WITH_FLAGS(SD_FLAG_IS_DRIVER)
|
||||
|
||||
END_SUB_GROUP()
|
||||
END_GROUP()
|
||||
|
@ -54,6 +54,7 @@ enum setting_flags
|
||||
SD_FLAG_HAS_RANGE = (1 << 4),
|
||||
SD_FLAG_ALLOW_INPUT = (1 << 5),
|
||||
SD_FLAG_PUSH_ACTION = (1 << 6),
|
||||
SD_FLAG_IS_DRIVER = (1 << 7),
|
||||
};
|
||||
|
||||
typedef struct rarch_setting_t
|
||||
|
Loading…
x
Reference in New Issue
Block a user