(Menu) Move more outside of menu_common_backend.c

This commit is contained in:
twinaphex 2014-08-16 10:06:49 +02:00
parent 3e16335d3a
commit c03478bd5f
2 changed files with 51 additions and 56 deletions

View File

@ -155,7 +155,7 @@ static void menu_common_entries_init(menu_handle_t *menu, unsigned menu_type)
#ifdef GEKKO
file_list_push(menu->selection_buf, "", "video_viwidth", MENU_SETTINGS_VIDEO_VIWIDTH, 0);
#endif
file_list_push(menu->selection_buf, "Software Filter", "", MENU_SETTINGS_VIDEO_SOFTFILTER, 0);
file_list_push(menu->selection_buf, "", "video_filter", MENU_SETTINGS_VIDEO_SOFTFILTER, 0);
#if defined(__CELLOS_LV2__)
file_list_push(menu->selection_buf, "PAL60 Mode", "", MENU_SETTINGS_VIDEO_PAL60, 0);
#endif
@ -390,7 +390,7 @@ static void menu_common_entries_init(menu_handle_t *menu, unsigned menu_type)
file_list_push(menu->selection_buf, "System BGM Control", "", MENU_SETTINGS_CUSTOM_BGM_CONTROL_ENABLE, 0);
#endif
file_list_push(menu->selection_buf, "", "audio_volume", MENU_SETTINGS_AUDIO_VOLUME, 0);
file_list_push(menu->selection_buf, "Audio Device", "", MENU_SETTINGS_DRIVER_AUDIO_DEVICE, 0);
file_list_push(menu->selection_buf, "", "audio_device", MENU_SETTINGS_DRIVER_AUDIO_DEVICE, 0);
break;
case MENU_SETTINGS_DRIVERS:
file_list_clear(menu->selection_buf);
@ -527,31 +527,6 @@ static int menu_info_screen_iterate(unsigned action, rarch_setting_t *setting)
"content is loaded."
);
break;
case MENU_SETTINGS_AUDIO_CONTROL_RATE_DELTA:
snprintf(msg, sizeof(msg),
" -- Audio rate control.\n"
" \n"
"Setting this to 0 disables rate control.\n"
"Any other value controls audio rate control \n"
"delta.\n"
" \n"
"Defines how much input rate can be adjusted \n"
"dynamically.\n"
" \n"
" Input rate is defined as: \n"
" input rate * (1.0 +/- (rate control delta))");
break;
case MENU_SETTINGS_VIDEO_SOFTFILTER:
#ifdef HAVE_FILTERS_BUILTIN
snprintf(msg, sizeof(msg),
" -- CPU-based video filter.");
#else
snprintf(msg, sizeof(msg),
" -- CPU-based video filter.\n"
" \n"
"Path to a dynamic library.");
#endif
break;
case MENU_SETTINGS_CORE:
snprintf(msg, sizeof(msg),
" -- Core Selection. \n"
@ -704,35 +679,6 @@ static int menu_info_screen_iterate(unsigned action, rarch_setting_t *setting)
#ifndef HAVE_FILTERS_BUILTIN
" \n"
"Path to a dynamic library."
#endif
);
break;
case MENU_SETTINGS_TOGGLE_FULLSCREEN:
snprintf(msg, sizeof(msg),
" -- Toggles fullscreen.");
break;
case MENU_SETTINGS_DRIVER_AUDIO_DEVICE:
snprintf(msg, sizeof(msg),
" -- Override the default audio device \n"
"the audio driver uses.\n"
"This is driver dependent. E.g.\n"
#ifdef HAVE_ALSA
" \n"
"ALSA wants a PCM device."
#endif
#ifdef HAVE_OSS
" \n"
"OSS wants a path (e.g. /dev/dsp)."
#endif
#ifdef HAVE_JACK
" \n"
"JACK wants portnames (e.g. system:playback1\n"
",system:playback_2)."
#endif
#ifdef HAVE_RSOUND
" \n"
"RSound wants an IP address to an RSound \n"
"server."
#endif
);
break;

View File

@ -573,6 +573,55 @@ void setting_data_get_description(const void *data, char *msg, size_t sizeof_msg
" 0: Syncs to GPU immediately.\n"
" 1: Syncs to previous frame.\n"
" 2: Etc ...");
else if (!strcmp(setting->name, "audio_rate_control_delta"))
snprintf(msg, sizeof_msg,
" -- Audio rate control.\n"
" \n"
"Setting this to 0 disables rate control.\n"
"Any other value controls audio rate control \n"
"delta.\n"
" \n"
"Defines how much input rate can be adjusted \n"
"dynamically.\n"
" \n"
" Input rate is defined as: \n"
" input rate * (1.0 +/- (rate control delta))");
else if (!strcmp(setting->name, "video_filter"))
#ifdef HAVE_FILTERS_BUILTIN
snprintf(msg, sizeof_msg,
" -- CPU-based video filter.");
#else
snprintf(msg, sizeof_msg,
" -- CPU-based video filter.\n"
" \n"
"Path to a dynamic library.");
#endif
else if (!strcmp(setting->name, "video_fullscreen"))
snprintf(msg, sizeof_msg, " -- Toggles fullscreen.");
else if (!strcmp(setting->name, "audio_device"))
snprintf(msg, sizeof_msg,
" -- Override the default audio device \n"
"the audio driver uses.\n"
"This is driver dependent. E.g.\n"
#ifdef HAVE_ALSA
" \n"
"ALSA wants a PCM device."
#endif
#ifdef HAVE_OSS
" \n"
"OSS wants a path (e.g. /dev/dsp)."
#endif
#ifdef HAVE_JACK
" \n"
"JACK wants portnames (e.g. system:playback1\n"
",system:playback_2)."
#endif
#ifdef HAVE_RSOUND
" \n"
"RSound wants an IP address to an RSound \n"
"server."
#endif
);
else if (!strcmp(setting->name, "video_black_frame_insertion"))
snprintf(msg, sizeof_msg,
" -- Inserts a black frame inbetween \n"