Fixed some buges with love2d support

This commit is contained in:
Ryan Ward 2022-09-29 11:57:37 -04:00
parent 6de93c10af
commit 0d3a7b9393
3 changed files with 3 additions and 3 deletions

View File

@ -1189,7 +1189,7 @@ function thread:newFunctionBase(generator,holdme)
end
end
tfunc.__call = function(t,...)
if not t.Active then
if t.Active == false then
if holdme then
return nil, "Function is paused"
end

View File

@ -109,7 +109,7 @@ end
multi.integration.GLOBAL = GLOBAL
multi.integration.THREAD = THREAD
require("multi.integration.loveManager.extensions")
mulit.print("Integrated Love Threading!")
multi.print("Integrated Love Threading!")
return {init=function()
return GLOBAL,THREAD
end}

View File

@ -106,7 +106,7 @@ function threads.kill()
error("Thread Killed!\1")
end
function THREAD.pushStatus(...)
function threads.pushStatus(...)
local status_channel = love.thread.getChannel("__"..__THREADID__.."__MULTI__STATUS_CHANNEL__")
local args = {...}
status_channel:push(__THREADID__, args)