diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-10-17 17:07:20 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-10-17 17:07:20 +0200 |
commit | dc80884ab551f6b103cba0a36878a8b4d4476e54 (patch) | |
tree | fe0ebcf4bf1d483f6a4612797b755e739dd58908 | |
parent | cranes done (diff) | |
download | re3-dc80884ab551f6b103cba0a36878a8b4d4476e54.tar re3-dc80884ab551f6b103cba0a36878a8b4d4476e54.tar.gz re3-dc80884ab551f6b103cba0a36878a8b4d4476e54.tar.bz2 re3-dc80884ab551f6b103cba0a36878a8b4d4476e54.tar.lz re3-dc80884ab551f6b103cba0a36878a8b4d4476e54.tar.xz re3-dc80884ab551f6b103cba0a36878a8b4d4476e54.tar.zst re3-dc80884ab551f6b103cba0a36878a8b4d4476e54.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 08e5c021..f7951339 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -867,7 +867,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; |