Skip to content

Commit

Permalink
- Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
ParticleG committed Oct 31, 2024
1 parent 7e6fb33 commit 1d66513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Zframework/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ if JS then
print("PASTE")
repeat
love.timer.sleep(0.2)
JS.retrieveData(0.2)
until res
return res
end
Expand Down Expand Up @@ -756,6 +755,10 @@ function love.run()
local dt=time-lastFrame
lastFrame=time

if JS.retrieveData(dt) then
return
end

-- EVENT
PUMP()
for N,a,b,c,d,e in POLL() do
Expand Down
1 change: 1 addition & 0 deletions Zframework/js.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function _Request:new(isPromise, command, onDataLoaded, onError, timeout, id)
end
self.onDataLoaded(retData)
else
print('d', self.id, retData)
self.onError(self.id, retData)
end
self:purgeData()
Expand Down

0 comments on commit 1d66513

Please sign in to comment.