Create separate 'Recording Settings'

This commit is contained in:
twinaphex 2015-04-14 18:28:15 +02:00
parent 69e7c978c5
commit 63b104204b
2 changed files with 52 additions and 26 deletions

View File

@ -103,6 +103,8 @@ static INLINE void get_title(const char *label, const char *dir,
snprintf(title, sizeof_title, "CONFIG %s", dir);
else if (!strcmp(label, "disk_image_append"))
snprintf(title, sizeof_title, "DISK APPEND %s", dir);
else if (!strcmp(elem0, "Recording Settings"))
strlcpy(title, "RECORDING SETTINGS", sizeof_title);
else if (!strcmp(elem0, "Video Settings"))
{
strlcpy(title, "VIDEO SETTINGS", sizeof_title);

View File

@ -3823,6 +3823,50 @@ static bool setting_append_list_general_options(
return true;
}
static bool setting_append_list_recording_options(
rarch_setting_t **list,
rarch_setting_info_t *list_info)
{
rarch_setting_group_info_t group_info;
rarch_setting_group_info_t subgroup_info;
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
START_GROUP(group_info, "Recording Settings");
START_SUB_GROUP(list, list_info, "State", group_info.name, subgroup_info);
CONFIG_BOOL(
settings->video.post_filter_record,
"video_post_filter_record",
"Post filter record Enable",
post_filter_record,
"OFF",
"ON",
group_info.name,
subgroup_info.name,
general_write_handler,
general_read_handler);
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
CONFIG_BOOL(
settings->video.gpu_record,
"video_gpu_record",
"GPU Record Enable",
gpu_record,
"OFF",
"ON",
group_info.name,
subgroup_info.name,
general_write_handler,
general_read_handler);
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
END_SUB_GROUP(list, list_info);
END_GROUP(list, list_info);
return true;
}
static bool setting_append_list_video_options(
rarch_setting_t **list,
rarch_setting_info_t *list_info)
@ -4304,32 +4348,6 @@ static bool setting_append_list_video_options(
group_info.name,
subgroup_info);
CONFIG_BOOL(
settings->video.post_filter_record,
"video_post_filter_record",
"Post filter record Enable",
post_filter_record,
"OFF",
"ON",
group_info.name,
subgroup_info.name,
general_write_handler,
general_read_handler);
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
CONFIG_BOOL(
settings->video.gpu_record,
"video_gpu_record",
"GPU Record Enable",
gpu_record,
"OFF",
"ON",
group_info.name,
subgroup_info.name,
general_write_handler,
general_read_handler);
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
CONFIG_BOOL(
settings->video.gpu_screenshot,
"video_gpu_screenshot",
@ -6293,6 +6311,12 @@ rarch_setting_t *setting_new(unsigned mask)
goto error;
}
if (mask & SL_FLAG_GENERAL_OPTIONS)
{
if (!setting_append_list_recording_options(&list, list_info))
goto error;
}
if (mask & SL_FLAG_FONT_OPTIONS)
{
if (!setting_append_list_font_options(&list, list_info))