From ecf782b9a3b294dc02ba365c576b3d1da8f324a8 Mon Sep 17 00:00:00 2001 From: Zocker1999NET Date: Fri, 20 May 2016 23:30:43 +0200 Subject: [PATCH] Extend startup.lua Loading coroutine api if needed Added first part of custom resume function --- mindows/startup.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mindows/startup.lua b/mindows/startup.lua index 4ddfb2a..b913b93 100644 --- a/mindows/startup.lua +++ b/mindows/startup.lua @@ -15,11 +15,16 @@ end local coroutine = _ENV.coroutine if sysType:sub(1,2) == "oc" and coroutine == nil then - + coroutine = require("coroutine") end local thread = coroutine.create() local function resume(...) - local ok,err = coroutine. + local ok,err = coroutine.resume(thread,...) + if not ok then + if type(err) ~= "string" then + + end + end end \ No newline at end of file