mirror of
https://github.com/TangentFoxy/itchy.git
synced 2024-11-14 10:14:22 +00:00
v3.0.1 better thread check
This commit is contained in:
parent
93aa79ae17
commit
a44c9743dd
@ -136,7 +136,7 @@ thread = function(...)
|
|||||||
end
|
end
|
||||||
return start(...)
|
return start(...)
|
||||||
end
|
end
|
||||||
if not (love.graphics or love.window) then
|
if arg == nil then
|
||||||
return thread(...)
|
return thread(...)
|
||||||
end
|
end
|
||||||
local thread_data = love.filesystem.newFileData(string.dump(thread), "itchy version checker")
|
local thread_data = love.filesystem.newFileData(string.dump(thread), "itchy version checker")
|
||||||
|
@ -102,7 +102,7 @@ thread = (...) ->
|
|||||||
start(...)
|
start(...)
|
||||||
|
|
||||||
-- detect if we are running in a thread, run directly if we are
|
-- detect if we are running in a thread, run directly if we are
|
||||||
return thread(...) unless love.graphics or love.window
|
return thread(...) if arg == nil
|
||||||
|
|
||||||
thread_data = love.filesystem.newFileData string.dump(thread), "itchy version checker"
|
thread_data = love.filesystem.newFileData string.dump(thread), "itchy version checker"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user