From d5bd4d53dfcda03558be24e8c353fc042802c085 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 23 Dec 2018 14:24:49 +0800 Subject: =?UTF-8?q?*=20json\xml=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin-lua/je_lua_embed.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/libjin-lua/je_lua_embed.h') diff --git a/src/libjin-lua/je_lua_embed.h b/src/libjin-lua/je_lua_embed.h index f99ff35..067e296 100644 --- a/src/libjin-lua/je_lua_embed.h +++ b/src/libjin-lua/je_lua_embed.h @@ -16,6 +16,10 @@ namespace JinEngine #include "scripts/mouse/mouse.lua.h" #include "scripts/path/path.lua.h" #include "scripts/time/time.lua.h" + #include "scripts/utils/json.lua.h" + #include "scripts/utils/xml.lua.h" + #include "scripts/log.lua.h" + #include "scripts/app.lua.h" // Embed structure. @@ -23,7 +27,7 @@ namespace JinEngine { const char* file, *source; }; - + // In order. static const jin_Embed modules[] = { // ai @@ -34,9 +38,13 @@ namespace JinEngine { "graphics.lua", graphics_lua }, { "path.lua", path_lua }, { "time.lua", time_lua }, + { "json.lua", json_lua }, + { "xml.lua", xml_lua }, + // + { "log.lua", log_lua }, { 0, 0 } }; - + static const jin_Embed bootscript = { "app.lua", app_lua }; static void run(lua_State* L) @@ -52,7 +60,6 @@ namespace JinEngine if (luax_loadbuffer(L, source, strlen(source), file) == 0) { luax_call(L, 0, 0); - jin_log_info("Done."); } else { -- cgit v1.1-26-g67d0