print a not configured message only if both builtin and file based autoconfs are not present

This commit is contained in:
radius 2015-11-14 23:49:26 -05:00
parent b6d5449ae6
commit 805b368345

View File

@ -236,14 +236,8 @@ static bool input_autoconfigure_joypad_from_conf_dir(
ret = 1;
}
else
{
char msg[PATH_MAX_LENGTH];
RARCH_LOG("Autodetect: no profiles found for %s (%d/%d)", params->name, params->vid, params->pid);
snprintf(msg, sizeof(msg), "%s (%ld/%ld) not configured", params->name, (long)params->vid, (long)params->pid);
rarch_main_msg_queue_push(msg, 0, 60, false);
ret = 0;
}
string_list_free(list);
if (ret == 0)
@ -312,7 +306,14 @@ bool input_config_autoconfigure_joypad(autoconfig_params_t *params)
if (!ret)
ret = input_autoconfigure_joypad_from_conf_internal(params);
#endif
if (!ret)
{
char msg[PATH_MAX_LENGTH];
RARCH_LOG("Autodetect: no profiles found for %s (%d/%d)", params->name, params->vid, params->pid);
snprintf(msg, sizeof(msg), "%s (%ld/%ld) not configured", params->name, (long)params->vid, (long)params->pid);
rarch_main_msg_queue_push(msg, 0, 60, false);
}
return ret;
}