aboutsummaryrefslogtreecommitdiff
path: root/src/libjin-lua/je_lua_embed.h
diff options
context:
space:
mode:
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
{