Merge pull request #1650 from chris062689/master

Autoconfigure - Change equals to starts with ident
This commit is contained in:
Twinaphex 2015-04-21 19:56:33 +02:00
commit 6c4582393c

View File

@ -89,8 +89,8 @@ static bool input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
ret = true;
}
if (!strcmp(ident, params->name))
/* Check for name match - name starts with ident */
if (!strncmp(params->name, ident, strlen(ident)))
{
BIT32_SET(*match, AUTODETECT_MATCH_IDENT);
ret = true;