mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(menu_setting.c) Cleanups
This commit is contained in:
parent
a8f027ba9b
commit
439de844b4
@ -492,7 +492,7 @@ static void MDTestSuite(void)
|
||||
MDFile ("foo");
|
||||
}
|
||||
|
||||
void main (int argc, char *argv[])
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -514,6 +514,8 @@ void main (int argc, char *argv[])
|
||||
else if (strcmp (argv[i], "-x") == 0)
|
||||
MDTestSuite ();
|
||||
else MDFile (argv[i]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -286,6 +286,9 @@ extern "C" {
|
||||
#define MENU_LABEL_REMAP_FILE_SAVE_CORE 0x7c9d4c8fU
|
||||
#define MENU_LABEL_REMAP_FILE_SAVE_GAME 0x7c9f41e0U
|
||||
#define MENU_LABEL_CONTENT_COLLECTION_LIST 0x0f8a9086U
|
||||
#define MENU_LABEL_OSK_ENABLE 0x8e208498U
|
||||
#define MENU_LABEL_AUDIO_MUTE 0xe0ca1151U
|
||||
#define MENU_LABEL_EXIT_EMULATOR 0x86d5d467U
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -2863,6 +2863,26 @@ static int setting_get_description_compare_label(uint32_t label_hash,
|
||||
"The modulation stops when the button \n"
|
||||
"itself (not turbo button) is released.");
|
||||
break;
|
||||
case MENU_LABEL_OSK_ENABLE:
|
||||
snprintf(s, len,
|
||||
" -- Enable/disable on-screen keyboard.");
|
||||
break;
|
||||
case MENU_LABEL_AUDIO_MUTE:
|
||||
snprintf(s, len,
|
||||
" -- Mute/unmute audio.");
|
||||
break;
|
||||
case MENU_LABEL_EXIT_EMULATOR:
|
||||
snprintf(s, len,
|
||||
" -- Key to exit RetroArch cleanly."
|
||||
#if !defined(RARCH_MOBILE) && !defined(RARCH_CONSOLE)
|
||||
"\nKilling it in any hard way (SIGKILL, \n"
|
||||
"etc) will terminate without saving\n"
|
||||
"RAM, etc. On Unix-likes,\n"
|
||||
"SIGINT/SIGTERM allows\n"
|
||||
"a clean deinitialization."
|
||||
#endif
|
||||
);
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
@ -2905,17 +2925,6 @@ int setting_get_description(const char *label, char *s,
|
||||
" \n"
|
||||
"Positive X axis is right. \n"
|
||||
"Positive Y axis is down.");
|
||||
else if (!strcmp(label, "exit_emulator"))
|
||||
snprintf(s, len,
|
||||
" -- Key to exit RetroArch cleanly."
|
||||
#if !defined(RARCH_MOBILE) && !defined(RARCH_CONSOLE)
|
||||
"\nKilling it in any hard way (SIGKILL, \n"
|
||||
"etc) will terminate without saving\n"
|
||||
"RAM, etc. On Unix-likes,\n"
|
||||
"SIGINT/SIGTERM allows\n"
|
||||
"a clean deinitialization."
|
||||
#endif
|
||||
);
|
||||
else if (!strcmp(label, "rewind"))
|
||||
snprintf(s, len,
|
||||
" -- Hold button down to rewind.\n"
|
||||
@ -2964,12 +2973,6 @@ int setting_get_description(const char *label, char *s,
|
||||
else if (!strcmp(label, "shader_prev"))
|
||||
snprintf(s, len,
|
||||
" -- Applies previous shader in directory.");
|
||||
else if (!strcmp(label, "audio_mute"))
|
||||
snprintf(s, len,
|
||||
" -- Mute/unmute audio.");
|
||||
else if (!strcmp(label, "osk_enable"))
|
||||
snprintf(s, len,
|
||||
" -- Enable/disable on-screen keyboard.");
|
||||
else
|
||||
snprintf(s, len,
|
||||
"-- No info on this item is available. --\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user