mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
(macOS) Activated game launching function.
This commit is contained in:
parent
3c09082e3d
commit
3f9f620649
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue