summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-17 17:07:20 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-17 17:07:20 +0200
commitdc80884ab551f6b103cba0a36878a8b4d4476e54 (patch)
treefe0ebcf4bf1d483f6a4612797b755e739dd58908 /src/skel
parentcranes done (diff)
downloadre3-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 'src/skel')
-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 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;