summaryrefslogtreecommitdiffstats
path: root/src
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:10:37 +0200
commitb84dc2bc9b972eed6a76d86ed14b50a6ed3d7808 (patch)
treebfcb735d496582064b9310a95a4a17befb764365 /src
parentFix pickup fix :P (diff)
downloadre3-b84dc2bc9b972eed6a76d86ed14b50a6ed3d7808.tar
re3-b84dc2bc9b972eed6a76d86ed14b50a6ed3d7808.tar.gz
re3-b84dc2bc9b972eed6a76d86ed14b50a6ed3d7808.tar.bz2
re3-b84dc2bc9b972eed6a76d86ed14b50a6ed3d7808.tar.lz
re3-b84dc2bc9b972eed6a76d86ed14b50a6ed3d7808.tar.xz
re3-b84dc2bc9b972eed6a76d86ed14b50a6ed3d7808.tar.zst
re3-b84dc2bc9b972eed6a76d86ed14b50a6ed3d7808.zip
Diffstat (limited to 'src')
-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;