mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +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
|
||||
&& input_vid != 0
|
||||
&& input_pid != 0)
|
||||
{
|
||||
score += 3;
|
||||
}
|
||||
|
||||
/* Check for name match */
|
||||
if (string_is_equal(ident, params->name))
|
||||
{
|
||||
score += 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string_is_empty(ident)
|
||||
&& !strncmp(params->name, ident, strlen(ident)))
|
||||
{
|
||||
score += 1;
|
||||
}
|
||||
}
|
||||
|
||||
return score;
|
||||
}
|
||||
|
||||
@ -226,6 +221,7 @@ static bool input_autoconfigure_joypad_from_conf_dir(
|
||||
{
|
||||
conf = config_file_new(list->elems[i].data);
|
||||
ret = input_try_autoconfigure_joypad_from_conf(conf, params);
|
||||
|
||||
if(ret >= current_best)
|
||||
{
|
||||
index = i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user