diff --git a/src/init.c b/src/init.c index 336932e5..5d6577eb 100644 --- a/src/init.c +++ b/src/init.c @@ -219,7 +219,12 @@ GLFWAPI int glfwInit(void) _glfw.timer.offset = _glfwPlatformGetTimerValue(); glfwDefaultWindowHints(); - glfwUpdateGamepadMappings(_glfwDefaultMappings); + + if (!glfwUpdateGamepadMappings(_glfwDefaultMappings)) + { + terminate(); + return GLFW_FALSE; + } return GLFW_TRUE; }