executeProcess return 2 arguments

This commit is contained in:
Syping 2019-09-30 20:20:07 +02:00
parent 1ddf257a41
commit 71c86ba217

View file

@ -74,11 +74,16 @@ int LuaEngineOS::executeProcess(lua_State *L_p)
if (runInBackground && !processExecuted) {
processReturn = -2;
}
pushVariant(L_p, processReturn);
return 1;
else if (!runInBackground && processReturn != -2) {
processExecuted = true;
}
pushVariant(L_p, processExecuted);
pushVariant(L_p, processReturn);
return 2;
}
pushVariant(L_p, false);
pushVariant(L_p, -2);
return 1;
return 2;
}
QString LuaEngineOS::nameForPointer(void *pointer)