diff options
author | chai <chaifix@163.com> | 2018-08-20 08:15:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-20 08:15:34 +0800 |
commit | 98ab086f430d418f33c4410cf81f4eac52d5b835 (patch) | |
tree | 446cce66de209a10c9342bf98e21524de6e4ba05 /src/lua/embed/embed.h | |
parent | 22bb9b537caff927ef8c83bde82d58253ffbb1e4 (diff) |
*update
Diffstat (limited to 'src/lua/embed/embed.h')
-rw-r--r-- | src/lua/embed/embed.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lua/embed/embed.h b/src/lua/embed/embed.h index 33620b0..18ed1d8 100644 --- a/src/lua/embed/embed.h +++ b/src/lua/embed/embed.h @@ -19,7 +19,7 @@ namespace embed */ struct jin_Embed { - const char* fname, *source; + const char* file, *source; }; static void boot(lua_State* L) @@ -28,7 +28,6 @@ namespace embed #include "graphics.lua.h" // graphics #include "keyboard.lua.h" // keyboard #include "mouse.lua.h" // mouse - #include "debug.lua.h" // debug #include "boot.lua.h" // boot // embed scripts @@ -36,14 +35,13 @@ namespace embed { "graphics.lua", graphics_lua }, { "keyboard.lua", keyboard_lua }, { "mouse.lua", mouse_lua }, - { "debug.lua", debug_lua }, { "boot.lua", boot_lua }, { 0, 0 } }; // load all emebd lua scripts - for (int i = 0; scripts[i].fname; ++i) - embed(L, scripts[i].source, scripts[i].fname); + for (int i = 0; scripts[i].file; ++i) + embed(L, scripts[i].source, scripts[i].file); } } } |