Skip to content

Commit

Permalink
v3.0.1 better thread check
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed May 26, 2018
1 parent 93aa79a commit a44c974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion itchy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion itchy.moon
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit a44c974

Please sign in to comment.