mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Initial iOS implementation.
--HG-- branch : minor
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
|
||||
#if defined(LOVE_MACOSX)
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#elif defined(LOVE_IOS)
|
||||
#include "common/iOS.h"
|
||||
#elif defined(LOVE_LINUX)
|
||||
#include <spawn.h>
|
||||
//#include <stdlib.h>
|
||||
@@ -60,6 +62,8 @@ std::string System::getOS() const
|
||||
{
|
||||
#if defined(LOVE_MACOSX)
|
||||
return "OS X";
|
||||
#elif defined(LOVE_IOS)
|
||||
return "iOS";
|
||||
#elif defined(LOVE_WINDOWS)
|
||||
return "Windows";
|
||||
#elif defined(LOVE_LINUX)
|
||||
@@ -91,6 +95,10 @@ bool System::openURL(const std::string &url) const
|
||||
CFRelease(cfurl);
|
||||
return success;
|
||||
|
||||
#elif defined(LOVE_IOS)
|
||||
|
||||
return love::ios::openURL(url);
|
||||
|
||||
#elif defined(LOVE_LINUX)
|
||||
|
||||
pid_t pid;
|
||||
|
||||
Reference in New Issue
Block a user