Removed calls to exit on joystick init failure.

This commit is contained in:
Camilla Berglund 2012-01-29 15:32:16 +01:00
parent a5b8c8db18
commit 98173ece03

View File

@ -32,7 +32,6 @@
#include <unistd.h>
#include <ctype.h>
#include <sysexits.h>
#include <mach/mach.h>
#include <mach/mach_error.h>
#include <CoreFoundation/CoreFoundation.h>
@ -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);