mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Minor optimisations
This commit is contained in:
parent
9b1edc5eee
commit
8e2901d23a
@ -183,9 +183,7 @@ static const char *xinput_joypad_name(unsigned pad)
|
||||
* to get a name from the device itself */
|
||||
return dinput_joypad.name(pad);
|
||||
#else
|
||||
int xuser = pad_index_to_xuser_index(pad);
|
||||
|
||||
if (xuser < 0)
|
||||
if (pad_index_to_xuser_index(pad) < 0)
|
||||
return NULL;
|
||||
|
||||
/* On platforms without dinput support, no
|
||||
|
@ -668,7 +668,9 @@ void input_autoconfigure_connect(
|
||||
{
|
||||
autoconfig_handle->dir_autoconfig = strdup(dir_autoconfig);
|
||||
|
||||
if (!string_is_empty(autoconfig_handle->driver))
|
||||
/* 'autoconfig_handle->driver' will only be
|
||||
* non-NULL if 'driver' is a non-empty string */
|
||||
if (autoconfig_handle->driver)
|
||||
{
|
||||
char dir_driver_autoconfig[PATH_MAX_LENGTH];
|
||||
dir_driver_autoconfig[0] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user