mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Cleanup
This commit is contained in:
parent
d2dbe63b2b
commit
3247de9afa
@ -103,23 +103,18 @@ static int input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
|
|||||||
&& params->pid != 0
|
&& params->pid != 0
|
||||||
&& input_vid != 0
|
&& input_vid != 0
|
||||||
&& input_pid != 0)
|
&& input_pid != 0)
|
||||||
{
|
|
||||||
score += 3;
|
score += 3;
|
||||||
}
|
|
||||||
|
|
||||||
/* Check for name match */
|
/* Check for name match */
|
||||||
if (string_is_equal(ident, params->name))
|
if (string_is_equal(ident, params->name))
|
||||||
{
|
|
||||||
score += 2;
|
score += 2;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!string_is_empty(ident)
|
if (!string_is_empty(ident)
|
||||||
&& !strncmp(params->name, ident, strlen(ident)))
|
&& !strncmp(params->name, ident, strlen(ident)))
|
||||||
{
|
|
||||||
score += 1;
|
score += 1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return score;
|
return score;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,7 +220,8 @@ static bool input_autoconfigure_joypad_from_conf_dir(
|
|||||||
for (i = 0; i < list->size; i++)
|
for (i = 0; i < list->size; i++)
|
||||||
{
|
{
|
||||||
conf = config_file_new(list->elems[i].data);
|
conf = config_file_new(list->elems[i].data);
|
||||||
ret = input_try_autoconfigure_joypad_from_conf(conf, params);
|
ret = input_try_autoconfigure_joypad_from_conf(conf, params);
|
||||||
|
|
||||||
if(ret >= current_best)
|
if(ret >= current_best)
|
||||||
{
|
{
|
||||||
index = i;
|
index = i;
|
||||||
|
@ -99,7 +99,7 @@ struct turbo_buttons
|
|||||||
|
|
||||||
static turbo_buttons_t input_driver_turbo_btns;
|
static turbo_buttons_t input_driver_turbo_btns;
|
||||||
#ifdef HAVE_COMMAND
|
#ifdef HAVE_COMMAND
|
||||||
static command_t *input_driver_command = NULL;
|
static command_t *input_driver_command = NULL;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_NETWORKGAMEPAD
|
#ifdef HAVE_NETWORKGAMEPAD
|
||||||
static input_remote_t *input_driver_remote = NULL;
|
static input_remote_t *input_driver_remote = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user