(intl) CLeanups

This commit is contained in:
libretroadmin 2023-01-21 18:50:00 +01:00
parent becf623bf0
commit 27b485a0f7
32 changed files with 20 additions and 625 deletions

View File

@ -14,7 +14,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -22,8 +21,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -33,21 +30,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_ar_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_ar(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -21,8 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -32,21 +29,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_ast_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_ast(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -22,28 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#ifdef RARCH_INTERNAL
#include "../configuration.h"
#include "../config.def.h"
int msg_hash_get_help_ca_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
#endif
#ifdef HAVE_MENU
static const char *menu_hash_to_str_ca_label_enum(enum msg_hash_enums msg)

View File

@ -22,7 +22,6 @@
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)

View File

@ -22,7 +22,6 @@
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)

View File

@ -14,7 +14,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -22,8 +21,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
/* https://support.microsoft.com/en-us/kb/980263 */
@ -33,21 +30,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_cs_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_cs(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -15,7 +15,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -23,8 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
/* https://support.microsoft.com/en-us/kb/980263 */
@ -34,21 +31,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_de_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_de(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -22,7 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#ifdef RARCH_INTERNAL
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -21,8 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -32,21 +29,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_en_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_en(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -19,7 +19,6 @@
#include <compat/strl.h>
#include <string/stdstring.h>
#include "../configuration.h"
#include "../msg_hash.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
@ -30,22 +29,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_eo_enum(enum msg_hash_enums msg, char *s, size_t len)
{
switch (msg)
{
case MSG_UNKNOWN:
default:
if (string_is_empty(s))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE), len);
/* TODO/FIXME - should change this to -1 once we add more entries */
break;
}
/* TODO/FIXME - should change this to 0 once we add more entries */
return -1;
}
const char *msg_hash_to_str_eo(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -23,7 +23,6 @@
* 20 LÍNEAS POR PANTALLA
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -31,8 +30,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -42,21 +39,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_es_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_es(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -21,7 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -31,24 +29,6 @@
#pragma warning(disable:4566)
#endif
#ifdef RARCH_INTERNAL
#include "../configuration.h"
int msg_hash_get_help_fa_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
#endif
const char *msg_hash_to_str_fa(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -14,7 +14,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -22,24 +21,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
int msg_hash_get_help_fi_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_fi(enum msg_hash_enums msg)
{

View File

@ -16,7 +16,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -24,8 +23,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -35,21 +32,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_fr_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_fr(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -21,7 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -31,24 +29,6 @@
#pragma warning(disable:4566)
#endif
#ifdef RARCH_INTERNAL
#include "../configuration.h"
int msg_hash_get_help_he_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
#endif
const char *msg_hash_to_str_he(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -21,8 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -32,21 +29,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_hu_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_hu(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -14,7 +14,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -22,8 +21,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
/* https://support.microsoft.com/en-us/kb/980263 */
@ -33,21 +30,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_id_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_id(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
@ -21,7 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -31,21 +29,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_it_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_it(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -22,7 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX)
#if (_MSC_VER >= 1700 && _MSC_VER < 1900)

View File

@ -22,7 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX)
#if (_MSC_VER >= 1700 && _MSC_VER < 1900)

View File

@ -12,7 +12,6 @@
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
@ -29,26 +28,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_nl_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MENU_ENUM_LABEL_WELCOME_TO_RETROARCH:
snprintf(s, len,
"Welkom bij RetroArch\n"
);
break;
default:
strlcpy(s, "Geen informatie beschikbaar.", len);
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_nl(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -21,7 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -31,21 +29,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_pl_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_pl(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -20,7 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -30,25 +29,10 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_ru_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
#ifdef HAVE_MENU
static const char *menu_hash_to_str_ru_label_enum(enum msg_hash_enums msg)
{
if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
if ( msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN)
{
static char hotkey_lbl[128] = {0};

View File

@ -13,7 +13,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -21,7 +20,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -31,24 +29,6 @@
#pragma warning(disable:4566)
#endif
#ifdef RARCH_INTERNAL
#include "../configuration.h"
int msg_hash_get_help_sk_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
#endif
const char *msg_hash_to_str_sk(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -14,7 +14,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -22,8 +21,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -33,21 +30,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_sv_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_sv(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -22,7 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#ifdef RARCH_INTERNAL
#include "../configuration.h"

View File

@ -14,7 +14,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@ -22,8 +21,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../configuration.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -33,21 +30,6 @@
#pragma warning(disable:4566)
#endif
int msg_hash_get_help_uk_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
const char *msg_hash_to_str_uk(enum msg_hash_enums msg)
{
switch (msg)

View File

@ -143,82 +143,6 @@ int msg_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
case MENU_ENUM_LABEL_CORE_LIST:
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_CORE_LIST), len);
break;
#if 0
/* These items are only available from the help menu that was hidden by commit ee9b6ba78e8690bb5eff8c978dba3d1649363e6b */
case MENU_ENUM_LABEL_VALUE_MENU_ENUM_CONTROLS_PROLOG:
snprintf(s, len,
"You can use the following controls below \n"
"on either your gamepad or keyboard in order\n"
"to control the menu: \n"
" \n");
break;
case MENU_ENUM_LABEL_WELCOME_TO_RETROARCH:
snprintf(s, len,
"Welcome to RetroArch\n");
break;
case MENU_ENUM_LABEL_VALUE_HELP_AUDIO_VIDEO_TROUBLESHOOTING_DESC:
{
/* Work around C89 limitations */
char u[501];
const char *t =
"RetroArch relies on an unique form of\n"
"audio/video synchronization where it needs to be\n"
"calibrated against the refresh rate of your\n"
"display for best performance results.\n"
" \n"
"If you experience any audio crackling or video\n"
"tearing, usually it means that you need to\n"
"calibrate the settings. Some choices below:\n"
" \n";
snprintf(u, sizeof(u), /* can't inline this due to the printf arguments */
"a) Go to '%s' -> '%s', and enable\n"
"'Threaded Video'. Refresh rate will not matter\n"
"in this mode, framerate will be higher,\n"
"but video might be less smooth.\n"
"b) Go to '%s' -> '%s', and look at\n"
"'%s'. Let it run for\n"
"2048 frames, then press 'OK'.",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_REFRESH_RATE_AUTO));
strlcpy(s, t, len);
strlcat(s, u, len);
}
break;
case MENU_ENUM_LABEL_VALUE_HELP_SCANNING_CONTENT_DESC:
snprintf(s, len,
"To scan for content, go to '%s' and\n"
"select either '%s' or %s'.\n"
"\n"
"Files will be compared to database entries.\n"
"If there is a match, it will add an entry\n"
"to a playlist.\n"
"\n"
"You can then easily access this content by\n"
"going to '%s' ->\n"
"'%s'\n"
"instead of having to go through the\n"
"file browser every time.\n"
"\n"
"NOTE: Content for some cores might still not be\n"
"scannable.",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ADD_CONTENT_LIST),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_FILE),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_LIST),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLISTS_TAB));
break;
case MENU_ENUM_LABEL_VALUE_EXTRACTING_PLEASE_WAIT:
snprintf(s, len,
"Welcome to RetroArch\n"
"\n"
"Extracting assets, please wait.\n"
"This might take a while...\n");
break;
/* Help menu items end. */
#endif
case MENU_ENUM_LABEL_INPUT_DRIVER:
{
const char *lbl = settings ? settings->arrays.input_driver : NULL;
@ -481,56 +405,6 @@ int msg_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
case MENU_ENUM_LABEL_CHEAT_START_OR_CONT:
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_CHEAT_START_OR_CONT), len);
break;
#if 0
/* These items are only available from the help menu that was hidden by commit ee9b6ba78e8690bb5eff8c978dba3d1649363e6b */
case MENU_ENUM_LABEL_VALUE_WHAT_IS_A_CORE_DESC:
snprintf(s, len,
"RetroArch by itself does nothing. \n"
" \n"
"To make it do things, you need to \n"
"load a program into it. \n"
"\n"
"We call such a program 'Libretro core', \n"
"or 'core' in short. \n"
" \n"
"To load a core, select one from\n"
"'Load Core'.\n"
" \n"
#ifdef HAVE_NETWORKING
"You can obtain cores in several ways: \n"
"* Download them by going to\n"
"'%s' -> '%s'.\n"
"* Manually move them over to\n"
"'%s'.",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_UPDATER_LIST),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LIBRETRO_DIR_PATH)
#else
"You can obtain cores by\n"
"manually moving them over to\n"
"'%s'.",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LIBRETRO_DIR_PATH)
#endif
);
break;
case MENU_ENUM_LABEL_VALUE_HELP_CHANGE_VIRTUAL_GAMEPAD_DESC:
snprintf(s, len,
"You can change the virtual gamepad overlay\n"
"by going to '%s' -> '%s'."
" \n"
"From there you can change the overlay,\n"
"change the size and opacity of the buttons, etc.\n"
" \n"
"NOTE: By default, virtual gamepad overlays are\n"
"hidden when in the menu.\n"
"If you'd like to change this behavior,\n"
"you can set '%s' to false.",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OVERLAY_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_HIDE_IN_MENU));
break;
/* Help menu items end. */
#endif
#ifdef HAVE_LAKKA
case MENU_ENUM_LABEL_TIMEZONE:
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_TIMEZONE), len);

View File

@ -22,28 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#ifdef RARCH_INTERNAL
#include "../configuration.h"
#include "../config.def.h"
int msg_hash_get_help_val_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
#endif
#ifdef HAVE_MENU
static const char *menu_hash_to_str_val_label_enum(enum msg_hash_enums msg)

View File

@ -22,7 +22,6 @@
#include <string/stdstring.h>
#include "../msg_hash.h"
#include "../verbosity.h"
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
#if (_MSC_VER >= 1700)
@ -34,7 +33,7 @@
int msg_hash_get_help_vn_enum(enum msg_hash_enums msg, char *s, size_t len)
{
if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
if ( msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN)
{
unsigned idx = msg - MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN;

View File

@ -37,33 +37,12 @@ int msg_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
#ifdef HAVE_LANGEXTRA
switch (uint_user_language)
{
case RETRO_LANGUAGE_FRENCH:
ret = msg_hash_get_help_fr_enum(msg, s, len);
break;
case RETRO_LANGUAGE_GERMAN:
ret = msg_hash_get_help_de_enum(msg, s, len);
break;
case RETRO_LANGUAGE_SPANISH:
ret = msg_hash_get_help_es_enum(msg, s, len);
break;
case RETRO_LANGUAGE_ITALIAN:
ret = msg_hash_get_help_it_enum(msg, s, len);
break;
case RETRO_LANGUAGE_PORTUGUESE_BRAZIL:
ret = msg_hash_get_help_pt_br_enum(msg, s, len);
break;
case RETRO_LANGUAGE_PORTUGUESE_PORTUGAL:
ret = msg_hash_get_help_pt_pt_enum(msg, s, len);
break;
case RETRO_LANGUAGE_DUTCH:
ret = msg_hash_get_help_nl_enum(msg, s, len);
break;
case RETRO_LANGUAGE_ESPERANTO:
ret = msg_hash_get_help_eo_enum(msg, s, len);
break;
case RETRO_LANGUAGE_POLISH:
ret = msg_hash_get_help_pl_enum(msg, s, len);
break;
case RETRO_LANGUAGE_JAPANESE:
ret = msg_hash_get_help_jp_enum(msg, s, len);
break;
@ -79,54 +58,33 @@ int msg_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
case RETRO_LANGUAGE_CHINESE_TRADITIONAL:
ret = msg_hash_get_help_cht_enum(msg, s, len);
break;
case RETRO_LANGUAGE_ARABIC:
ret = msg_hash_get_help_ar_enum(msg, s, len);
break;
case RETRO_LANGUAGE_GREEK:
ret = msg_hash_get_help_el_enum(msg, s, len);
break;
case RETRO_LANGUAGE_TURKISH:
ret = msg_hash_get_help_tr_enum(msg, s, len);
break;
case RETRO_LANGUAGE_SLOVAK:
ret = msg_hash_get_help_sk_enum(msg, s, len);
break;
case RETRO_LANGUAGE_PERSIAN:
ret = msg_hash_get_help_fa_enum(msg, s, len);
break;
case RETRO_LANGUAGE_HEBREW:
ret = msg_hash_get_help_he_enum(msg, s, len);
break;
case RETRO_LANGUAGE_ASTURIAN:
ret = msg_hash_get_help_ast_enum(msg, s, len);
break;
case RETRO_LANGUAGE_FINNISH:
ret = msg_hash_get_help_fi_enum(msg, s, len);
break;
case RETRO_LANGUAGE_INDONESIAN:
ret = msg_hash_get_help_id_enum(msg, s, len);
break;
case RETRO_LANGUAGE_SWEDISH:
ret = msg_hash_get_help_sv_enum(msg, s, len);
break;
case RETRO_LANGUAGE_UKRAINIAN:
ret = msg_hash_get_help_uk_enum(msg, s, len);
break;
case RETRO_LANGUAGE_CZECH:
ret = msg_hash_get_help_cs_enum(msg, s, len);
break;
case RETRO_LANGUAGE_CATALAN_VALENCIA:
ret = msg_hash_get_help_val_enum(msg, s, len);
break;
case RETRO_LANGUAGE_CATALAN:
ret = msg_hash_get_help_ca_enum(msg, s, len);
break;
case RETRO_LANGUAGE_UKRAINIAN:
case RETRO_LANGUAGE_SLOVAK:
case RETRO_LANGUAGE_PERSIAN:
case RETRO_LANGUAGE_ESPERANTO:
case RETRO_LANGUAGE_BRITISH_ENGLISH:
ret = msg_hash_get_help_en_enum(msg, s, len);
break;
case RETRO_LANGUAGE_CATALAN:
case RETRO_LANGUAGE_CZECH:
case RETRO_LANGUAGE_HEBREW:
case RETRO_LANGUAGE_HUNGARIAN:
ret = msg_hash_get_help_hu_enum(msg, s, len);
break;
case RETRO_LANGUAGE_ARABIC:
case RETRO_LANGUAGE_ASTURIAN:
case RETRO_LANGUAGE_FINNISH:
case RETRO_LANGUAGE_INDONESIAN:
case RETRO_LANGUAGE_SWEDISH:
case RETRO_LANGUAGE_FRENCH:
case RETRO_LANGUAGE_GERMAN:
case RETRO_LANGUAGE_SPANISH:
case RETRO_LANGUAGE_ITALIAN:
case RETRO_LANGUAGE_DUTCH:
case RETRO_LANGUAGE_POLISH:
default:
break;
}

View File

@ -3930,21 +3930,16 @@ enum msg_hash_enums
const char *msg_hash_to_str(enum msg_hash_enums msg);
const char *msg_hash_to_str_fr(enum msg_hash_enums msg);
int msg_hash_get_help_fr_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_ru(enum msg_hash_enums msg);
const char *msg_hash_to_str_de(enum msg_hash_enums msg);
int msg_hash_get_help_de_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_es(enum msg_hash_enums msg);
int msg_hash_get_help_es_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_eo(enum msg_hash_enums msg);
int msg_hash_get_help_eo_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_it(enum msg_hash_enums msg);
int msg_hash_get_help_it_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_jp(enum msg_hash_enums msg);
int msg_hash_get_help_jp_enum(enum msg_hash_enums msg, char *s, size_t len);
@ -3959,10 +3954,8 @@ const char *msg_hash_to_str_pt_pt(enum msg_hash_enums msg);
int msg_hash_get_help_pt_pt_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_pl(enum msg_hash_enums msg);
int msg_hash_get_help_pl_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_nl(enum msg_hash_enums msg);
int msg_hash_get_help_nl_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_vn(enum msg_hash_enums msg);
int msg_hash_get_help_vn_enum(enum msg_hash_enums msg, char *s, size_t len);
@ -3977,7 +3970,6 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg);
int msg_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_ar(enum msg_hash_enums msg);
int msg_hash_get_help_ar_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_el(enum msg_hash_enums msg);
int msg_hash_get_help_el_enum(enum msg_hash_enums msg, char *s, size_t len);
@ -3986,43 +3978,30 @@ const char *msg_hash_to_str_tr(enum msg_hash_enums msg);
int msg_hash_get_help_tr_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_sk(enum msg_hash_enums msg);
int msg_hash_get_help_sk_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_fa(enum msg_hash_enums msg);
int msg_hash_get_help_fa_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_he(enum msg_hash_enums msg);
int msg_hash_get_help_he_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_ast(enum msg_hash_enums msg);
int msg_hash_get_help_ast_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_fi(enum msg_hash_enums msg);
int msg_hash_get_help_fi_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_id(enum msg_hash_enums msg);
int msg_hash_get_help_id_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_sv(enum msg_hash_enums msg);
int msg_hash_get_help_sv_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_uk(enum msg_hash_enums msg);
int msg_hash_get_help_uk_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_cs(enum msg_hash_enums msg);
int msg_hash_get_help_cs_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_val(enum msg_hash_enums msg);
int msg_hash_get_help_val_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_ca(enum msg_hash_enums msg);
int msg_hash_get_help_ca_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_en(enum msg_hash_enums msg);
int msg_hash_get_help_en_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_hu(enum msg_hash_enums msg);
int msg_hash_get_help_hu_enum(enum msg_hash_enums msg, char *s, size_t len);
int msg_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len);