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
|
||||
return start(...)
|
||||
end
|
||||
if not (love.graphics or love.window) then
|
||||
if arg == nil then
|
||||
return thread(...)
|
||||
end
|
||||
local thread_data = love.filesystem.newFileData(string.dump(thread), "itchy version checker")
|
||||
|
@ -102,7 +102,7 @@ thread = (...) ->
|
||||
start(...)
|
||||
|
||||
-- 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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user