|
@@ -36,8 +36,8 @@ static int os_pushresult (lua_State *L, int i, const char *filename) {
|
|
|
|
|
|
|
|
|
|
|
|
|
static int os_execute (lua_State *L) {
|
|
static int os_execute (lua_State *L) {
|
|
|
-// Urho3D - tvOS port, system not available for AppleTVOS and also its simulator
|
|
|
|
|
-#ifdef TVOS
|
|
|
|
|
|
|
+// Urho3D - tvOS port, system not available for AppleTVOS and also its simulator, also soon for iOS
|
|
|
|
|
+#if defined(TVOS) || defined(IOS)
|
|
|
lua_pushinteger(L, -1);
|
|
lua_pushinteger(L, -1);
|
|
|
#else
|
|
#else
|
|
|
lua_pushinteger(L, system(luaL_optstring(L, 1, NULL)));
|
|
lua_pushinteger(L, system(luaL_optstring(L, 1, NULL)));
|