Removed calls to exit on joystick init failure.

master
Camilla Berglund ago%!(EXTRA string=14 years)
parent a5b8c8db18
commit 98173ece03
  1. 5
      src/cocoa_joystick.m

@ -32,7 +32,6 @@
#include <unistd.h> #include <unistd.h>
#include <ctype.h> #include <ctype.h>
#include <sysexits.h>
#include <mach/mach.h> #include <mach/mach.h>
#include <mach/mach_error.h> #include <mach/mach_error.h>
#include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CoreFoundation.h>
@ -387,7 +386,7 @@ void _glfwInitJoysticks(void)
&score); &score);
if (kIOReturnSuccess != result) if (kIOReturnSuccess != result)
exit(EXIT_SUCCESS); return;
plugInResult = (*ppPlugInInterface)->QueryInterface( plugInResult = (*ppPlugInInterface)->QueryInterface(
ppPlugInInterface, ppPlugInInterface,
@ -395,7 +394,7 @@ void _glfwInitJoysticks(void)
(void *) &(joystick->Interface)); (void *) &(joystick->Interface));
if (plugInResult != S_OK) if (plugInResult != S_OK)
exit(EXIT_FAILURE); return;
(*ppPlugInInterface)->Release(ppPlugInInterface); (*ppPlugInInterface)->Release(ppPlugInInterface);

Loading…
Cancel
Save