aboutsummaryrefslogtreecommitdiff
path: root/src/libjin-lua/je_lua_embed.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-23 14:24:49 +0800
committerchai <chaifix@163.com>2018-12-23 14:24:49 +0800
commitd5bd4d53dfcda03558be24e8c353fc042802c085 (patch)
treea9109b68e529a49314154f5511fe53bb0e74fc0f /src/libjin-lua/je_lua_embed.h
parent5b8b5c95589e615afda3f0d67db612b64297c2a0 (diff)
* json\xml扩展
Diffstat (limited to 'src/libjin-lua/je_lua_embed.h')
-rw-r--r--src/libjin-lua/je_lua_embed.h13
1 files changed, 10 insertions, 3 deletions
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
{