(input_autodetect.c) Some fixes

This commit is contained in:
twinaphex 2015-03-28 22:20:05 +01:00
parent 90f97a725f
commit 7ac7b15718

View File

@ -108,7 +108,7 @@ static void input_autoconfigure_joypad_add(
/* This will be the case if input driver is reinitialized. /* This will be the case if input driver is reinitialized.
* No reason to spam autoconfigure messages every time. */ * No reason to spam autoconfigure messages every time. */
bool block_osd_spam = settings && bool block_osd_spam = settings &&
settings->input.autoconfigured[params->idx] && params->name; settings->input.autoconfigured[params->idx] && *params->name;
if (!settings) if (!settings)
return; return;
@ -221,7 +221,7 @@ void input_config_autoconfigure_joypad(autoconfig_params_t *params)
if (!input_config_autoconfigure_joypad_init(params)) if (!input_config_autoconfigure_joypad_init(params))
return; return;
if (!params->name) if (!*params->name)
return; return;
#if defined(HAVE_BUILTIN_AUTOCONFIG) #if defined(HAVE_BUILTIN_AUTOCONFIG)