From 98173ece03bc43fe007a3ea263e80d5f7f557670 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 29 Jan 2012 15:32:16 +0100 Subject: [PATCH] Removed calls to exit on joystick init failure. --- src/cocoa_joystick.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cocoa_joystick.m b/src/cocoa_joystick.m index 4a2ddeb7..36397b74 100644 --- a/src/cocoa_joystick.m +++ b/src/cocoa_joystick.m @@ -32,7 +32,6 @@ #include #include -#include #include #include #include @@ -387,7 +386,7 @@ void _glfwInitJoysticks(void) &score); if (kIOReturnSuccess != result) - exit(EXIT_SUCCESS); + return; plugInResult = (*ppPlugInInterface)->QueryInterface( ppPlugInInterface, @@ -395,7 +394,7 @@ void _glfwInitJoysticks(void) (void *) &(joystick->Interface)); if (plugInResult != S_OK) - exit(EXIT_FAILURE); + return; (*ppPlugInInterface)->Release(ppPlugInInterface);