From 3f9f620649f878af2eac8c4bdf7919dab7f09e59 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 19 Aug 2020 22:02:42 +0200 Subject: [PATCH] (macOS) Activated game launching function. --- es-core/src/Platform.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/es-core/src/Platform.cpp b/es-core/src/Platform.cpp index e5b0fa131..fdd86ceef 100644 --- a/es-core/src/Platform.cpp +++ b/es-core/src/Platform.cpp @@ -19,7 +19,11 @@ #include "SDL_events.h" #endif -#ifdef _WIN64 +#if defined(__APPLE__) +#include +#endif + +#if defined(_WIN64) #include #include #include @@ -69,7 +73,7 @@ int runSystemCommand(const std::wstring& cmd_utf16) int launchEmulatorUnix(const std::string& cmd_utf8) { - #ifdef __unix__ + #if defined(__unix__) || defined (__APPLE__) std::string command = std::string(cmd_utf8) + " 2>&1"; FILE* commandPipe;