From 5298328cb175a17eb9ea534a9d07dc57b42d2d42 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Sat, 15 Apr 2017 19:23:19 -0700 Subject: Add headless support on macOS --- Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/Quartz') diff --git a/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm b/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm index a090b421a5..30802182a8 100644 --- a/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm +++ b/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm @@ -12,6 +12,9 @@ namespace Quartz { void PopulateDevices(void* window) { + if (!window) + return; + g_controller_interface.AddDevice(std::make_shared(window)); } -- cgit v1.2.3