Dehardcode some more strings

This commit is contained in:
twinaphex 2016-07-01 06:02:57 +02:00
parent 86fa52a2ea
commit 241670cec2
3 changed files with 10 additions and 4 deletions

View File

@ -2002,6 +2002,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return "Frontend for libretro";
case MSG_LOADING:
return "Loading";
case MSG_GAME_SPECIFIC_CORE_OPTIONS_FOUND_AT:
return "Per-Game Options: game-specific core options found at";
case MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_PORT:
return "Network Remote Base Port";
case MSG_AUTOCONFIG_FILE_SAVED_SUCCESSFULLY:

View File

@ -132,6 +132,7 @@ enum msg_hash_enums
MSG_FAILED_TO_SEND_NICKNAME_SIZE,
MSG_FAILED_TO_SEND_NICKNAME,
MSG_FAILED_TO_SEND_SRAM_DATA_TO_CLIENT,
MSG_GAME_SPECIFIC_CORE_OPTIONS_FOUND_AT,
MSG_INVALID_NICKNAME_SIZE,
MSG_VERSION_OF_LIBRETRO_API,
MSG_COMPILED_AGAINST_API,

View File

@ -571,7 +571,8 @@ static bool rarch_game_specific_options(char **output)
char game_path[PATH_MAX_LENGTH] = {0};
config_file_t *option_file = NULL;
if (!retroarch_validate_game_options(game_path, sizeof(game_path), false))
if (!retroarch_validate_game_options(game_path,
sizeof(game_path), false))
return false;
option_file = config_file_new(game_path);
@ -580,8 +581,9 @@ static bool rarch_game_specific_options(char **output)
config_file_free(option_file);
RARCH_LOG("Per-Game Options: "
"game-specific core options found at %s\n", game_path);
RARCH_LOG("%s %s\n",
msg_hash_to_str(MSG_GAME_SPECIFIC_CORE_OPTIONS_FOUND_AT),
game_path);
*output = strdup(game_path);
return true;
}
@ -634,7 +636,8 @@ static bool runloop_check_idle_state(event_cmd_state_t *cmd)
return true;
}
static bool runloop_check_state(event_cmd_state_t *cmd, rarch_dir_list_t *shader_dir)
static bool runloop_check_state(event_cmd_state_t *cmd,
rarch_dir_list_t *shader_dir)
{
bool tmp = false;
settings_t *settings = config_get_ptr();