mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(Menu) Move some info descriptions to settings_data.c
This commit is contained in:
parent
955330b3fd
commit
536cf71733
@ -688,60 +688,21 @@ static int menu_info_screen_iterate(unsigned action, rarch_setting_t *setting)
|
||||
driver.menu->selection_ptr,
|
||||
setting_data_get_list());
|
||||
|
||||
if (current_setting)
|
||||
setting_data_get_description(current_setting, msg, sizeof(msg));
|
||||
else
|
||||
{
|
||||
current_setting = (rarch_setting_t*)file_list_get_last_setting(
|
||||
driver.menu->selection_buf,
|
||||
driver.menu->selection_ptr,
|
||||
setting_data_get_mainmenu(true));
|
||||
|
||||
if (current_setting)
|
||||
setting_data_get_description(current_setting, msg, sizeof(msg));
|
||||
else
|
||||
{
|
||||
switch (driver.menu->info_selection)
|
||||
{
|
||||
case MENU_SETTINGS_OPEN_FILEBROWSER:
|
||||
snprintf(msg, sizeof(msg),
|
||||
" -- Load Content. \n"
|
||||
"Browse for content. \n"
|
||||
" \n"
|
||||
"To load content, you need a \n"
|
||||
"libretro core to use, and a \n"
|
||||
"content file. \n"
|
||||
" \n"
|
||||
"To control where the menu starts \n"
|
||||
" to browse for content, set \n"
|
||||
"Browser Directory. If not set, \n"
|
||||
"it will start in root. \n"
|
||||
" \n"
|
||||
"The browser will filter out \n"
|
||||
"extensions for the last core set \n"
|
||||
"in 'Core', and use that core when \n"
|
||||
"content is loaded."
|
||||
);
|
||||
break;
|
||||
case MENU_SETTINGS_CORE:
|
||||
snprintf(msg, sizeof(msg),
|
||||
" -- Core Selection. \n"
|
||||
" \n"
|
||||
"Browse for a libretro core \n"
|
||||
"implementation. Where the browser \n"
|
||||
"starts depends on your Core Directory \n"
|
||||
"path. If blank, it will start in root. \n"
|
||||
" \n"
|
||||
"If Core Directory is a directory, the menu \n"
|
||||
"will use that as top folder. If Core \n"
|
||||
"Directory is a full path, it will start \n"
|
||||
"in the folder where the file is.");
|
||||
break;
|
||||
case MENU_SETTINGS_OPEN_HISTORY:
|
||||
snprintf(msg, sizeof(msg),
|
||||
" -- Loading content from history. \n"
|
||||
" \n"
|
||||
"As content is loaded, content and libretro \n"
|
||||
"core combinations are saved to history. \n"
|
||||
" \n"
|
||||
"The history is saved to a file in the same \n"
|
||||
"directory as the RetroArch config file. If \n"
|
||||
"no config file was loaded in startup, history \n"
|
||||
"will not be saved or loaded, and will not exist \n"
|
||||
"in the main menu."
|
||||
);
|
||||
break;
|
||||
case MENU_SETTINGS_SHADER_PRESET:
|
||||
snprintf(msg, sizeof(msg),
|
||||
" -- Load Shader Preset. \n"
|
||||
@ -1085,6 +1046,7 @@ static int menu_info_screen_iterate(unsigned action, rarch_setting_t *setting)
|
||||
"-- No info on this item available. --\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (driver.video_data && driver.menu_ctx && driver.menu_ctx->render_messagebox)
|
||||
{
|
||||
|
@ -646,6 +646,51 @@ void setting_data_get_description(const void *data, char *msg,
|
||||
"Depending on video driver, it might \n"
|
||||
"force a different input driver.");
|
||||
}
|
||||
else if (!strcmp(setting->name, "load_content"))
|
||||
snprintf(msg, sizeof_msg,
|
||||
" -- Load Content. \n"
|
||||
"Browse for content. \n"
|
||||
" \n"
|
||||
"To load content, you need a \n"
|
||||
"libretro core to use, and a \n"
|
||||
"content file. \n"
|
||||
" \n"
|
||||
"To control where the menu starts \n"
|
||||
" to browse for content, set \n"
|
||||
"Browser Directory. If not set, \n"
|
||||
"it will start in root. \n"
|
||||
" \n"
|
||||
"The browser will filter out \n"
|
||||
"extensions for the last core set \n"
|
||||
"in 'Core', and use that core when \n"
|
||||
"content is loaded."
|
||||
);
|
||||
else if (!strcmp(setting->name, "core_list"))
|
||||
snprintf(msg, sizeof_msg,
|
||||
" -- Core Selection. \n"
|
||||
" \n"
|
||||
"Browse for a libretro core \n"
|
||||
"implementation. Where the browser \n"
|
||||
"starts depends on your Core Directory \n"
|
||||
"path. If blank, it will start in root. \n"
|
||||
" \n"
|
||||
"If Core Directory is a directory, the menu \n"
|
||||
"will use that as top folder. If Core \n"
|
||||
"Directory is a full path, it will start \n"
|
||||
"in the folder where the file is.");
|
||||
else if (!strcmp(setting->name, "history_list"))
|
||||
snprintf(msg, sizeof_msg,
|
||||
" -- Loading content from history. \n"
|
||||
" \n"
|
||||
"As content is loaded, content and libretro \n"
|
||||
"core combinations are saved to history. \n"
|
||||
" \n"
|
||||
"The history is saved to a file in the same \n"
|
||||
"directory as the RetroArch config file. If \n"
|
||||
"no config file was loaded in startup, history \n"
|
||||
"will not be saved or loaded, and will not exist \n"
|
||||
"in the main menu."
|
||||
);
|
||||
else if (!strcmp(setting->name, "audio_resampler_driver"))
|
||||
{
|
||||
if (!strcmp(g_settings.audio.resampler, "sinc"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user