aboutsummaryrefslogtreecommitdiff
path: root/src/lua/embed/boot.lua.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-28 23:44:32 +0800
committerchai <chaifix@163.com>2018-07-28 23:44:32 +0800
commite9dcb75fb3cdbabd7152b0303af4dc27b4bcca3d (patch)
treea3b3c765780a4304306ee37da33fadfdfe8857d2 /src/lua/embed/boot.lua.h
parent7cce806948349c77a9863e6c5328d20f463f8b6c (diff)
*update
Diffstat (limited to 'src/lua/embed/boot.lua.h')
-rw-r--r--src/lua/embed/boot.lua.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h
index da1feac..ab241f1 100644
--- a/src/lua/embed/boot.lua.h
+++ b/src/lua/embed/boot.lua.h
@@ -65,6 +65,9 @@ function jin.core.run()
end
safecall(onEvent, e)
end
+ if not running() then
+ break
+ end
safecall(onUpdate, dt)
-- bind to default render buffer
unbind()