aboutsummaryrefslogtreecommitdiff
path: root/src/lua/embed/boot.lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/embed/boot.lua.h')
-rw-r--r--src/lua/embed/boot.lua.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h
index 0b04fc1..1ba613b 100644
--- a/src/lua/embed/boot.lua.h
+++ b/src/lua/embed/boot.lua.h
@@ -1,12 +1,10 @@
/* boot.lua */
static const char* boot_lua = R"(
--- init filesystem
jin._argv[2] = jin._argv[2] or '.'
jin.filesystem.init()
jin.filesystem.mount(jin._argv[2])
--- config
local conf = {}
if jin.filesystem.exist("config.lua") then
conf = require "config"
@@ -118,7 +116,7 @@ local function main()
-- no game
function jin.core.onEvent(e)
if e.type == 'quit' then
- jin.core.quit()
+ jin.core.stop()
end
end
function jin.core.onDraw()