mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Dehardcode some more strings
This commit is contained in:
parent
86fa52a2ea
commit
241670cec2
@ -2002,6 +2002,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
|||||||
return "Frontend for libretro";
|
return "Frontend for libretro";
|
||||||
case MSG_LOADING:
|
case MSG_LOADING:
|
||||||
return "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:
|
case MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_PORT:
|
||||||
return "Network Remote Base Port";
|
return "Network Remote Base Port";
|
||||||
case MSG_AUTOCONFIG_FILE_SAVED_SUCCESSFULLY:
|
case MSG_AUTOCONFIG_FILE_SAVED_SUCCESSFULLY:
|
||||||
|
@ -132,6 +132,7 @@ enum msg_hash_enums
|
|||||||
MSG_FAILED_TO_SEND_NICKNAME_SIZE,
|
MSG_FAILED_TO_SEND_NICKNAME_SIZE,
|
||||||
MSG_FAILED_TO_SEND_NICKNAME,
|
MSG_FAILED_TO_SEND_NICKNAME,
|
||||||
MSG_FAILED_TO_SEND_SRAM_DATA_TO_CLIENT,
|
MSG_FAILED_TO_SEND_SRAM_DATA_TO_CLIENT,
|
||||||
|
MSG_GAME_SPECIFIC_CORE_OPTIONS_FOUND_AT,
|
||||||
MSG_INVALID_NICKNAME_SIZE,
|
MSG_INVALID_NICKNAME_SIZE,
|
||||||
MSG_VERSION_OF_LIBRETRO_API,
|
MSG_VERSION_OF_LIBRETRO_API,
|
||||||
MSG_COMPILED_AGAINST_API,
|
MSG_COMPILED_AGAINST_API,
|
||||||
|
11
runloop.c
11
runloop.c
@ -571,7 +571,8 @@ static bool rarch_game_specific_options(char **output)
|
|||||||
char game_path[PATH_MAX_LENGTH] = {0};
|
char game_path[PATH_MAX_LENGTH] = {0};
|
||||||
config_file_t *option_file = NULL;
|
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;
|
return false;
|
||||||
|
|
||||||
option_file = config_file_new(game_path);
|
option_file = config_file_new(game_path);
|
||||||
@ -580,8 +581,9 @@ static bool rarch_game_specific_options(char **output)
|
|||||||
|
|
||||||
config_file_free(option_file);
|
config_file_free(option_file);
|
||||||
|
|
||||||
RARCH_LOG("Per-Game Options: "
|
RARCH_LOG("%s %s\n",
|
||||||
"game-specific core options found at %s\n", game_path);
|
msg_hash_to_str(MSG_GAME_SPECIFIC_CORE_OPTIONS_FOUND_AT),
|
||||||
|
game_path);
|
||||||
*output = strdup(game_path);
|
*output = strdup(game_path);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -634,7 +636,8 @@ static bool runloop_check_idle_state(event_cmd_state_t *cmd)
|
|||||||
return true;
|
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;
|
bool tmp = false;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user