add sanity check
This commit is contained in:
parent
efad7848ec
commit
210ec0c23b
|
@ -1115,7 +1115,7 @@ bool event_command(enum event_command cmd)
|
||||||
case EVENT_CMD_RESET:
|
case EVENT_CMD_RESET:
|
||||||
RARCH_LOG("%s.\n", msg_hash_to_str(MSG_RESET));
|
RARCH_LOG("%s.\n", msg_hash_to_str(MSG_RESET));
|
||||||
rarch_main_msg_queue_push_new(MSG_RESET, 1, 120, true);
|
rarch_main_msg_queue_push_new(MSG_RESET, 1, 120, true);
|
||||||
|
|
||||||
#ifdef HAVE_CHEEVOS
|
#ifdef HAVE_CHEEVOS
|
||||||
cheevos_globals.cheats_were_enabled = cheevos_globals.cheats_are_enabled;
|
cheevos_globals.cheats_were_enabled = cheevos_globals.cheats_are_enabled;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,7 +33,7 @@ bool input_remapping_load_file(const char *path)
|
||||||
config_file_t *conf = config_file_new(path);
|
config_file_t *conf = config_file_new(path);
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (!conf)
|
if (!conf || path[0] == '\0')
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
strlcpy(settings->input.remapping_path, path,
|
strlcpy(settings->input.remapping_path, path,
|
||||||
|
|
Loading…
Reference in New Issue