Fixed some buges with love2d support
This commit is contained in:
parent
6de93c10af
commit
0d3a7b9393
@ -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
|
||||||
|
|||||||
@ -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}
|
||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user