1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00

Fix termination on mapping parse error

This commit is contained in:
Camilla Löwy 2017-11-06 17:44:44 +01:00
parent 79e2433eb0
commit 71018b4ab5

View File

@ -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;
}