aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/SDL2.dllbin1279488 -> 771072 bytes
-rw-r--r--bin/cembed.exebin44032 -> 11264 bytes
-rw-r--r--bin/jin.exebin2001920 -> 540672 bytes
-rw-r--r--bin/lua51.dllbin364544 -> 364544 bytes
-rw-r--r--src/libjin-lua/je_lua_jin.cpp3
5 files changed, 2 insertions, 1 deletions
diff --git a/bin/SDL2.dll b/bin/SDL2.dll
index dc5633e..6bb9433 100644
--- a/bin/SDL2.dll
+++ b/bin/SDL2.dll
Binary files differ
diff --git a/bin/cembed.exe b/bin/cembed.exe
index bace0b5..e268f2b 100644
--- a/bin/cembed.exe
+++ b/bin/cembed.exe
Binary files differ
diff --git a/bin/jin.exe b/bin/jin.exe
index 1d45f87..c064c81 100644
--- a/bin/jin.exe
+++ b/bin/jin.exe
Binary files differ
diff --git a/bin/lua51.dll b/bin/lua51.dll
index e427e83..64f08ae 100644
--- a/bin/lua51.dll
+++ b/bin/lua51.dll
Binary files differ
diff --git a/src/libjin-lua/je_lua_jin.cpp b/src/libjin-lua/je_lua_jin.cpp
index 37b8358..fec1544 100644
--- a/src/libjin-lua/je_lua_jin.cpp
+++ b/src/libjin-lua/je_lua_jin.cpp
@@ -40,6 +40,7 @@ namespace JinEngine
}
// Register jin module, keep it on the top of stack.
+ // The reason why not using luaL_register is because we want register some variables into jin module.
LUA_EXPORT void open(lua_State* L)
{
jin_log_info("Openning jin library.");
@@ -93,7 +94,7 @@ namespace JinEngine
LUA_EXPORT void boot(lua_State* L, const char* cwd)
{
- //luax_clearstack(L);
+ luax_clearstack(L);
luax_getglobal(L, MODULE_NAME);
luax_newtable(L);
luax_setfieldstring(L, "cwd", cwd);