Add MENU_LABEL_VALUE_MENU_CONTROLS_PROLOG

This commit is contained in:
twinaphex 2015-07-18 08:39:52 +02:00
parent 34be1b9c9c
commit d3b1eef196
3 changed files with 17 additions and 2 deletions

View File

@ -78,6 +78,7 @@ static int action_iterate_help(char *s, size_t len, const char *label)
break;
case MENU_HELP_CONTROLS:
{
char s2[PATH_MAX_LENGTH];
const unsigned binds[] = {
RETRO_DEVICE_ID_JOYPAD_UP,
RETRO_DEVICE_ID_JOYPAD_DOWN,
@ -102,7 +103,11 @@ static int action_iterate_help(char *s, size_t len, const char *label)
input_get_bind_string(desc[i], keybind, auto_bind, sizeof(desc[i]));
}
menu_hash_get_help(MENU_LABEL_VALUE_MENU_CONTROLS_PROLOG,
s2, sizeof(s2));
snprintf(s, len,
"%s"
"[%s]: "
"%-20s\n"
"[%s]: "
@ -121,6 +126,7 @@ static int action_iterate_help(char *s, size_t len, const char *label)
"%-20s\n"
"[%s]: "
"%-20s\n",
s2,
menu_hash_to_str(MENU_LABEL_VALUE_BASIC_MENU_CONTROLS_SCROLL_UP), desc[0],
menu_hash_to_str(MENU_LABEL_VALUE_BASIC_MENU_CONTROLS_SCROLL_DOWN), desc[1],
menu_hash_to_str(MENU_LABEL_VALUE_BASIC_MENU_CONTROLS_CONFIRM), desc[2],

View File

@ -1524,6 +1524,13 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len)
switch (hash)
{
case MENU_LABEL_VALUE_MENU_CONTROLS_PROLOG:
snprintf(s, len,
"You can use the following controls below \n"
"on either your gamepad or keyboard: \n"
" \n"
);
break;
case MENU_LABEL_VALUE_EXTRACTING_PLEASE_WAIT:
strlcpy(s, "Extracting, please wait...\n", len);
break;
@ -1590,8 +1597,8 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len)
" \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"
"'File Browser Directory'. \n"
"If not set, it will start in root. \n"
" \n"
"The browser will filter out \n"
"extensions for the last core set \n"

View File

@ -22,6 +22,8 @@
extern "C" {
#endif
#define MENU_LABEL_VALUE_MENU_CONTROLS_PROLOG 0x72674cdfU
#define MENU_LABEL_HELP_LOADING_CONTENT 0x231d8245U
#define MENU_LABEL_VALUE_HELP_LOADING_CONTENT 0x70bab027U