summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-10-18 15:14:03 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-10-18 15:14:03 +0200
commit747fe7ab67890903ede4f3277a430c5d33fc9316 (patch)
tree7860c2e6d323f63b97d5412aa31f122fe64c771f /src/skel
parentAdd missing breaks in AudioLogic.cpp (diff)
parentScript.cpp missing breaks (diff)
downloadre3-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.cpp3
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;