(macOS) Activated game launching function.

This commit is contained in:
Leon Styhre 2020-08-19 22:02:42 +02:00
parent 3c09082e3d
commit 3f9f620649

View file

@ -19,7 +19,11 @@
#include "SDL_events.h" #include "SDL_events.h"
#endif #endif
#ifdef _WIN64 #if defined(__APPLE__)
#include <array>
#endif
#if defined(_WIN64)
#include <windows.h> #include <windows.h>
#include <codecvt> #include <codecvt>
#include <locale> #include <locale>
@ -69,7 +73,7 @@ int runSystemCommand(const std::wstring& cmd_utf16)
int launchEmulatorUnix(const std::string& cmd_utf8) int launchEmulatorUnix(const std::string& cmd_utf8)
{ {
#ifdef __unix__ #if defined(__unix__) || defined (__APPLE__)
std::string command = std::string(cmd_utf8) + " 2>&1"; std::string command = std::string(cmd_utf8) + " 2>&1";
FILE* commandPipe; FILE* commandPipe;