diff options
author | chai <chaifix@163.com> | 2018-09-02 18:44:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-02 18:44:15 +0800 |
commit | 4f147c08fc5498af393729c5e4a3d91894c97467 (patch) | |
tree | 0a00c636b84238d60bd4535dc988591e24d15458 /src/lua/modules/embed/embed.h | |
parent | 6d67345bd5ddea7a4ce37e6bbeda15d341b1ee82 (diff) |
*update
Diffstat (limited to 'src/lua/modules/embed/embed.h')
-rw-r--r-- | src/lua/modules/embed/embed.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lua/modules/embed/embed.h b/src/lua/modules/embed/embed.h index 6393454..8d0ba85 100644 --- a/src/lua/modules/embed/embed.h +++ b/src/lua/modules/embed/embed.h @@ -22,21 +22,20 @@ namespace embed static void boot(lua_State* L) { // embed scripts - #include "graphics.lua.h" // graphics - #include "keyboard.lua.h" // keyboard - #include "mouse.lua.h" // mouse - #include "boot.lua.h" // boot + #include "graphics.lua.h" + #include "keyboard.lua.h" + #include "mouse.lua.h" + #include "boot.lua.h" - // embed scripts + // in order const jin_Embed scripts[] = { { "graphics.lua", graphics_lua }, { "keyboard.lua", keyboard_lua }, - { "mouse.lua", mouse_lua }, - { "boot.lua", boot_lua }, - { 0, 0 } + { "mouse.lua", mouse_lua }, + { "boot.lua", boot_lua }, + { 0, 0 } }; - // load all emebd lua scripts for (int i = 0; scripts[i].file; ++i) embed(L, scripts[i].source, scripts[i].file); } |