mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 15:39:55 +00:00
Create menu_hash_get_help_nl_enum
This commit is contained in:
parent
84291d2d3d
commit
f2fb8ec0f0
@ -12,13 +12,35 @@
|
||||
* 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>
|
||||
|
||||
#include <compat/strl.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include "../msg_hash.h"
|
||||
|
||||
int menu_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;
|
||||
}
|
||||
|
||||
int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len)
|
||||
{
|
||||
int ret = 0;
|
||||
|
@ -123,11 +123,6 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len)
|
||||
"This might take a while...\n"
|
||||
);
|
||||
break;
|
||||
case MENU_LABEL_WELCOME_TO_RETROARCH:
|
||||
snprintf(s, len,
|
||||
"Welcome to RetroArch\n"
|
||||
);
|
||||
break;
|
||||
case MENU_LABEL_INPUT_DRIVER:
|
||||
if (settings)
|
||||
driver_hash = msg_hash_calculate(settings->input.driver);
|
||||
|
18
msg_hash.c
18
msg_hash.c
@ -35,28 +35,30 @@ int menu_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
|
||||
{
|
||||
#if 0
|
||||
case RETRO_LANGUAGE_FRENCH:
|
||||
ret = menu_hash_get_help_fr_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_fr_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_GERMAN:
|
||||
ret = menu_hash_get_help_de_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_de_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_SPANISH:
|
||||
ret = menu_hash_get_help_es_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_es_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_ITALIAN:
|
||||
ret = menu_hash_get_help_it_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_it_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_PORTUGUESE:
|
||||
ret = menu_hash_get_help_pt_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_pt_enum(msg, s, len);
|
||||
break;
|
||||
#endif
|
||||
case RETRO_LANGUAGE_DUTCH:
|
||||
ret = menu_hash_get_help_nl_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_nl_enum(msg, s, len);
|
||||
break;
|
||||
#if 0
|
||||
case RETRO_LANGUAGE_ESPERANTO:
|
||||
ret = menu_hash_get_help_eo_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_eo_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_POLISH:
|
||||
ret = menu_hash_get_help_pl_enum(hash, s, len);
|
||||
ret = menu_hash_get_help_pl_enum(msg, s, len);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
@ -2157,6 +2157,7 @@ int menu_hash_get_help_pl(uint32_t hash, char *s, size_t len);
|
||||
|
||||
const char *msg_hash_to_str_nl(enum msg_hash_enums msg);
|
||||
int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len);
|
||||
int menu_hash_get_help_nl_enum(enum msg_hash_enums msg, char *s, size_t len);
|
||||
|
||||
const char *msg_hash_to_str_us(enum msg_hash_enums msg);
|
||||
int menu_hash_get_help_us(uint32_t hash, char *s, size_t len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user