More translatable strings

This commit is contained in:
twinaphex 2016-06-20 04:23:00 +02:00
parent 59b8b3b9ed
commit 32c4f74f7d
4 changed files with 13 additions and 3 deletions

View File

@ -378,8 +378,12 @@ bool core_load(void)
bool core_verify_api_version(void)
{
unsigned api_version = core.retro_api_version();
RARCH_LOG("Version of libretro API: %u\n", api_version);
RARCH_LOG("Compiled against API: %u\n", RETRO_API_VERSION);
RARCH_LOG("%s: %u\n",
msg_hash_to_str(MSG_VERSION_OF_LIBRETRO_API),
api_version);
RARCH_LOG("%s: %u\n",
msg_hash_to_str(MSG_COMPILED_AGAINST_API),
RETRO_API_VERSION);
if (api_version != RETRO_API_VERSION)
{

View File

@ -103,7 +103,7 @@ static void core_info_list_resolve_all_firmware(
snprintf(path_key, sizeof(path_key), "firmware%u_path", c);
snprintf(desc_key, sizeof(desc_key), "firmware%u_desc", c);
snprintf(opt_key, sizeof(opt_key), "firmware%u_opt", c);
snprintf(opt_key, sizeof(opt_key), "firmware%u_opt", c);
config_get_string(config, path_key, &info->firmware[c].path);
config_get_string(config, desc_key, &info->firmware[c].desc);

View File

@ -1980,6 +1980,10 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return "Frontend for libretro";
case MSG_LOADING:
return "Loading";
case MSG_VERSION_OF_LIBRETRO_API:
return "Version of libretro API";
case MSG_COMPILED_AGAINST_API:
return "Compiled against API";
case MSG_FAILED_TO_LOAD:
return "Failed to load";
case MSG_ERROR_LIBRETRO_CORE_REQUIRES_CONTENT:

View File

@ -30,6 +30,8 @@ enum msg_hash_enums
MSG_LIBRETRO_FRONTEND,
MSG_LOADING,
MSG_FAILED_TO_LOAD,
MSG_VERSION_OF_LIBRETRO_API,
MSG_COMPILED_AGAINST_API,
MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT,
MSG_ERROR_LIBRETRO_CORE_REQUIRES_CONTENT,
MSG_CONTENT_LOADING_SKIPPED_IMPLEMENTATION_WILL_DO_IT,