diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2020-10-18 15:14:03 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2020-10-18 15:14:03 +0200 |
commit | 747fe7ab67890903ede4f3277a430c5d33fc9316 (patch) | |
tree | 7860c2e6d323f63b97d5412aa31f122fe64c771f /src/skel | |
parent | Add missing breaks in AudioLogic.cpp (diff) | |
parent | Script.cpp missing breaks (diff) | |
download | re3-747fe7ab67890903ede4f3277a430c5d33fc9316.tar re3-747fe7ab67890903ede4f3277a430c5d33fc9316.tar.gz re3-747fe7ab67890903ede4f3277a430c5d33fc9316.tar.bz2 re3-747fe7ab67890903ede4f3277a430c5d33fc9316.tar.lz re3-747fe7ab67890903ede4f3277a430c5d33fc9316.tar.xz re3-747fe7ab67890903ede4f3277a430c5d33fc9316.tar.zst re3-747fe7ab67890903ede4f3277a430c5d33fc9316.zip |
Diffstat (limited to '')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 118ed950..cdb73992 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -847,7 +847,8 @@ bool IsThisJoystickBlacklisted(int 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 true; |