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
end end
tfunc.__call = function(t,...) tfunc.__call = function(t,...)
if not t.Active then if t.Active == false then
if holdme then if holdme then
return nil, "Function is paused" return nil, "Function is paused"
end end

View File

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

View File

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