mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
(input_autodetect.c) Some fixes
This commit is contained in:
parent
90f97a725f
commit
7ac7b15718
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user