mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(input_autodetect.c) Add AUTODETECT_MATCH_* rule
This commit is contained in:
parent
013038d3ef
commit
34439fc432
@ -43,6 +43,7 @@ enum
|
||||
AUTODETECT_MATCH_VID,
|
||||
AUTODETECT_MATCH_PID,
|
||||
AUTODETECT_MATCH_IDENT,
|
||||
AUTODETECT_MATCH_DRIVER,
|
||||
AUTODETECT_MATCH_NAME,
|
||||
};
|
||||
|
||||
@ -88,11 +89,13 @@ static bool input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
|
||||
ret = true;
|
||||
}
|
||||
|
||||
if (!strcmp(ident, params->name)
|
||||
&& !strcmp(params->driver, input_driver))
|
||||
|
||||
if (!strcmp(ident, params->name))
|
||||
{
|
||||
BIT32_SET(*match, AUTODETECT_MATCH_IDENT);
|
||||
ret = true;
|
||||
if (!strcmp(params->driver, input_driver))
|
||||
BIT32_SET(*match, AUTODETECT_MATCH_DRIVER);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user