Fix management issue
This commit is contained in:
parent
516a02d2da
commit
b84dc2bc9b
1 changed files with 2 additions and 1 deletions
|
@ -847,7 +847,8 @@ bool IsThisJoystickBlacklisted(int i)
|
||||||
|
|
||||||
const char* joyname = glfwGetJoystickName(i);
|
const char* joyname = glfwGetJoystickName(i);
|
||||||
|
|
||||||
if (strncmp(joyname, gSelectedJoystickName, strlen(gSelectedJoystickName)) == 0)
|
if (gSelectedJoystickName[0] != '\0' &&
|
||||||
|
strncmp(joyname, gSelectedJoystickName, strlen(gSelectedJoystickName)) == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue