aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/LuaJIT-2.0.5/src/buildvm.libbin33996 -> 33996 bytes
-rw-r--r--src/3rdparty/LuaJIT-2.0.5/src/minilua.libbin33996 -> 33996 bytes
-rw-r--r--src/3rdparty/cembed/cembed.c1
-rw-r--r--src/libjin-lua/embed/ai.lua.h1
-rw-r--r--src/libjin-lua/embed/app.lua.h401
-rw-r--r--src/libjin-lua/embed/embed.h2
-rw-r--r--src/libjin-lua/embed/graphics.lua.h111
-rw-r--r--src/libjin-lua/embed/keyboard.lua.h1
-rw-r--r--src/libjin-lua/embed/mouse.lua.h1
-rw-r--r--src/libjin-lua/embed/net.lua.h1
-rw-r--r--src/libjin-lua/embed/path.lua.h19
-rw-r--r--src/libjin-lua/embed/scripts/app.lua3
-rw-r--r--src/libjin-lua/embed/scripts/graphics/graphics.lua28
-rw-r--r--src/libjin-lua/embed/scripts/path/path.lua9
-rw-r--r--src/libjin-lua/embed/state_machine.lua.h1
-rw-r--r--src/libjin/game/je_application.cpp1
-rw-r--r--src/libjin/graphics/je_window.cpp5
17 files changed, 296 insertions, 289 deletions
diff --git a/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib b/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib
index d4372fd..c7be727 100644
--- a/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib
+++ b/src/3rdparty/LuaJIT-2.0.5/src/buildvm.lib
Binary files differ
diff --git a/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib b/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib
index a3cce18..e2b3ac3 100644
--- a/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib
+++ b/src/3rdparty/LuaJIT-2.0.5/src/minilua.lib
Binary files differ
diff --git a/src/3rdparty/cembed/cembed.c b/src/3rdparty/cembed/cembed.c
index f64d084..1adcf83 100644
--- a/src/3rdparty/cembed/cembed.c
+++ b/src/3rdparty/cembed/cembed.c
@@ -128,6 +128,7 @@ static void write_embedded(FILE *fp, const char *filename,
safename(varname, name);
+ fprintf(fp, "/*Auto generated, don't modify by hand.*/\n");
if (!nostatic) { fprintf(fp, "static "); }
fprintf(fp, "unsigned char %s%s[] = {", varprefix, varname);
BufferedFile inbf = bf_reader(infp);
diff --git a/src/libjin-lua/embed/ai.lua.h b/src/libjin-lua/embed/ai.lua.h
index 1af475c..cbc5f81 100644
--- a/src/libjin-lua/embed/ai.lua.h
+++ b/src/libjin-lua/embed/ai.lua.h
@@ -1,3 +1,4 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char ai_lua[] = {
106,105,110,46,97,105,32,61,32,106,105,110,46,97,105,32,111,114,32,123,
125,32,13,10,13,10,108,111,99,97,108,32,106,97,32,61,32,106,105,110,
diff --git a/src/libjin-lua/embed/app.lua.h b/src/libjin-lua/embed/app.lua.h
index 1f0f327..e941b6d 100644
--- a/src/libjin-lua/embed/app.lua.h
+++ b/src/libjin-lua/embed/app.lua.h
@@ -1,209 +1,208 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char app_lua[] = {
-108,111,99,97,108,32,99,119,100,32,61,32,106,105,110,46,97,114,103,115,
-91,39,99,119,100,39,93,32,111,114,32,39,46,39,13,10,106,105,110,46,
-102,105,108,101,115,121,115,116,101,109,46,105,110,105,116,40,41,13,10,106,
-105,110,46,102,105,108,101,115,121,115,116,101,109,46,109,111,117,110,116,40,
-99,119,100,41,13,10,13,10,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,13,10,45,45,32,67,111,110,102,105,103,32,103,97,109,101,13,10,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,13,10,13,10,106,105,110,46,
-99,111,110,102,105,103,32,32,61,32,123,125,32,13,10,105,102,32,106,105,
-110,46,102,105,108,101,115,121,115,116,101,109,46,101,120,105,115,116,40,34,
-99,111,110,102,105,103,46,108,117,97,34,41,32,116,104,101,110,32,13,10,
-32,32,32,32,120,112,99,97,108,108,40,102,117,110,99,116,105,111,110,40,
-41,106,105,110,46,99,111,110,102,105,103,32,61,32,114,101,113,117,105,114,
-101,32,34,99,111,110,102,105,103,34,32,101,110,100,44,32,102,117,110,99,
-116,105,111,110,40,41,101,110,100,41,32,32,32,32,13,10,101,110,100,13,
-10,106,105,110,46,99,111,110,102,105,103,46,119,105,100,116,104,32,32,32,
-32,32,32,61,32,106,105,110,46,99,111,110,102,105,103,46,119,105,100,116,
-104,32,32,32,32,32,32,111,114,32,53,56,48,32,13,10,106,105,110,46,
-99,111,110,102,105,103,46,104,101,105,103,104,116,32,32,32,32,32,61,32,
-106,105,110,46,99,111,110,102,105,103,46,104,101,105,103,104,116,32,32,32,
-32,32,111,114,32,52,53,48,32,13,10,106,105,110,46,99,111,110,102,105,
-103,46,118,115,121,110,99,32,32,32,32,32,32,61,32,106,105,110,46,99,
-111,110,102,105,103,46,118,115,121,110,99,32,32,32,32,32,32,111,114,32,
-116,114,117,101,13,10,106,105,110,46,99,111,110,102,105,103,46,116,105,116,
-108,101,32,32,32,32,32,32,61,32,106,105,110,46,99,111,110,102,105,103,
-46,116,105,116,108,101,32,32,32,32,32,32,111,114,32,40,34,106,105,110,
-32,118,34,32,46,46,32,106,105,110,46,118,101,114,115,105,111,110,41,13,
-10,106,105,110,46,99,111,110,102,105,103,46,114,101,115,105,122,97,98,108,
-101,32,32,61,32,106,105,110,46,99,111,110,102,105,103,46,114,101,115,105,
-122,97,98,108,101,32,32,111,114,32,102,97,108,115,101,32,13,10,106,105,
-110,46,99,111,110,102,105,103,46,102,117,108,108,115,99,114,101,101,110,32,
-61,32,106,105,110,46,99,111,110,102,105,103,46,102,117,108,108,115,99,114,
-101,101,110,32,111,114,32,102,97,108,115,101,13,10,106,105,110,46,99,111,
-110,102,105,103,46,102,112,115,32,32,32,32,32,32,32,32,61,32,106,105,
-110,46,99,111,110,102,105,103,46,102,112,115,32,32,32,32,32,32,32,32,
-111,114,32,54,48,13,10,106,105,110,46,99,111,110,102,105,103,46,105,99,
-111,110,32,32,32,32,32,32,32,61,32,106,105,110,46,99,111,110,102,105,
-103,46,105,99,111,110,32,32,32,32,32,32,32,111,114,32,34,34,13,10,
-13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,45,45,32,
-68,101,102,97,117,108,116,32,103,97,109,101,32,108,111,111,112,13,10,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,13,10,13,10,108,111,99,97,
-108,32,102,117,110,99,116,105,111,110,32,99,97,108,108,40,102,117,110,99,
-44,32,46,46,46,41,13,10,32,32,32,32,105,102,32,102,117,110,99,32,
-116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,114,101,116,117,114,
-110,32,102,117,110,99,40,46,46,46,41,13,10,32,32,32,32,101,110,100,
-13,10,101,110,100,13,10,13,10,108,111,99,97,108,32,115,116,101,112,32,
-61,32,106,105,110,46,116,105,109,101,46,115,116,101,112,13,10,106,105,110,
-46,116,105,109,101,46,115,116,101,112,32,61,32,110,105,108,13,10,13,10,
-102,117,110,99,116,105,111,110,32,106,105,110,46,99,111,114,101,46,114,117,
-110,40,41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,
-115,46,114,101,115,101,116,40,41,13,10,32,32,32,32,99,97,108,108,40,
-106,105,110,46,99,111,114,101,46,111,110,76,111,97,100,41,13,10,32,32,
-32,32,108,111,99,97,108,32,100,116,32,61,32,48,13,10,32,32,32,32,
-119,104,105,108,101,32,106,105,110,46,99,111,114,101,46,114,117,110,110,105,
-110,103,40,41,32,100,111,13,10,32,32,32,32,32,32,32,32,102,111,114,
-32,95,44,32,101,32,105,110,32,112,97,105,114,115,40,106,105,110,46,101,
-118,101,110,116,46,112,111,108,108,40,41,41,32,100,111,32,13,10,32,32,
-32,32,32,32,32,32,32,32,32,32,105,102,32,101,46,116,121,112,101,32,
-61,61,32,34,75,101,121,68,111,119,110,34,32,116,104,101,110,32,13,10,
+106,105,110,46,102,105,108,101,115,121,115,116,101,109,46,105,110,105,116,40,
+41,13,10,106,105,110,46,102,105,108,101,115,121,115,116,101,109,46,109,111,
+117,110,116,40,106,105,110,46,99,119,100,41,13,10,13,10,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,13,10,45,45,32,67,111,110,102,105,103,
+32,103,97,109,101,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+13,10,13,10,106,105,110,46,99,111,110,102,105,103,32,32,61,32,123,125,
+32,13,10,105,102,32,106,105,110,46,102,105,108,101,115,121,115,116,101,109,
+46,101,120,105,115,116,40,34,99,111,110,102,105,103,46,108,117,97,34,41,
+32,116,104,101,110,32,13,10,32,32,32,32,120,112,99,97,108,108,40,102,
+117,110,99,116,105,111,110,40,41,106,105,110,46,99,111,110,102,105,103,32,
+61,32,114,101,113,117,105,114,101,32,34,99,111,110,102,105,103,34,32,101,
+110,100,44,32,102,117,110,99,116,105,111,110,40,41,101,110,100,41,32,32,
+32,32,13,10,101,110,100,13,10,106,105,110,46,99,111,110,102,105,103,46,
+119,105,100,116,104,32,32,32,32,32,32,61,32,106,105,110,46,99,111,110,
+102,105,103,46,119,105,100,116,104,32,32,32,32,32,32,111,114,32,53,56,
+48,32,13,10,106,105,110,46,99,111,110,102,105,103,46,104,101,105,103,104,
+116,32,32,32,32,32,61,32,106,105,110,46,99,111,110,102,105,103,46,104,
+101,105,103,104,116,32,32,32,32,32,111,114,32,52,53,48,32,13,10,106,
+105,110,46,99,111,110,102,105,103,46,118,115,121,110,99,32,32,32,32,32,
+32,61,32,106,105,110,46,99,111,110,102,105,103,46,118,115,121,110,99,32,
+32,32,32,32,32,111,114,32,116,114,117,101,13,10,106,105,110,46,99,111,
+110,102,105,103,46,116,105,116,108,101,32,32,32,32,32,32,61,32,106,105,
+110,46,99,111,110,102,105,103,46,116,105,116,108,101,32,32,32,32,32,32,
+111,114,32,40,34,106,105,110,32,118,34,32,46,46,32,106,105,110,46,118,
+101,114,115,105,111,110,41,13,10,106,105,110,46,99,111,110,102,105,103,46,
+114,101,115,105,122,97,98,108,101,32,32,61,32,106,105,110,46,99,111,110,
+102,105,103,46,114,101,115,105,122,97,98,108,101,32,32,111,114,32,102,97,
+108,115,101,32,13,10,106,105,110,46,99,111,110,102,105,103,46,102,117,108,
+108,115,99,114,101,101,110,32,61,32,106,105,110,46,99,111,110,102,105,103,
+46,102,117,108,108,115,99,114,101,101,110,32,111,114,32,102,97,108,115,101,
+13,10,106,105,110,46,99,111,110,102,105,103,46,102,112,115,32,32,32,32,
+32,32,32,32,61,32,106,105,110,46,99,111,110,102,105,103,46,102,112,115,
+32,32,32,32,32,32,32,32,111,114,32,54,48,13,10,106,105,110,46,99,
+111,110,102,105,103,46,105,99,111,110,32,32,32,32,32,32,32,61,32,106,
+105,110,46,99,111,110,102,105,103,46,105,99,111,110,32,32,32,32,32,32,
+32,111,114,32,34,34,13,10,13,10,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,13,10,45,45,32,68,101,102,97,117,108,116,32,103,97,109,101,
+32,108,111,111,112,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+13,10,13,10,108,111,99,97,108,32,102,117,110,99,116,105,111,110,32,99,
+97,108,108,40,102,117,110,99,44,32,46,46,46,41,13,10,32,32,32,32,
+105,102,32,102,117,110,99,32,116,104,101,110,32,13,10,32,32,32,32,32,
+32,32,32,114,101,116,117,114,110,32,102,117,110,99,40,46,46,46,41,13,
+10,32,32,32,32,101,110,100,13,10,101,110,100,13,10,13,10,108,111,99,
+97,108,32,115,116,101,112,32,61,32,106,105,110,46,116,105,109,101,46,115,
+116,101,112,13,10,106,105,110,46,116,105,109,101,46,115,116,101,112,32,61,
+32,110,105,108,13,10,13,10,102,117,110,99,116,105,111,110,32,106,105,110,
+46,99,111,114,101,46,114,117,110,40,41,13,10,32,32,32,32,106,105,110,
+46,103,114,97,112,104,105,99,115,46,114,101,115,101,116,40,41,13,10,32,
+32,32,32,99,97,108,108,40,106,105,110,46,99,111,114,101,46,111,110,76,
+111,97,100,41,13,10,32,32,32,32,108,111,99,97,108,32,100,116,32,61,
+32,48,13,10,32,32,32,32,119,104,105,108,101,32,106,105,110,46,99,111,
+114,101,46,114,117,110,110,105,110,103,40,41,32,100,111,13,10,32,32,32,
+32,32,32,32,32,102,111,114,32,95,44,32,101,32,105,110,32,112,97,105,
+114,115,40,106,105,110,46,101,118,101,110,116,46,112,111,108,108,40,41,41,
+32,100,111,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,
+32,101,46,116,121,112,101,32,61,61,32,34,75,101,121,68,111,119,110,34,
+32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,
+32,32,32,32,106,105,110,46,107,101,121,98,111,97,114,100,46,115,101,116,
+40,101,46,107,101,121,44,32,116,114,117,101,41,32,13,10,32,32,32,32,
+32,32,32,32,32,32,32,32,101,108,115,101,105,102,32,101,46,116,121,112,
+101,32,61,61,32,34,75,101,121,85,112,34,32,116,104,101,110,32,13,10,
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,106,105,110,46,
107,101,121,98,111,97,114,100,46,115,101,116,40,101,46,107,101,121,44,32,
-116,114,117,101,41,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,
-101,108,115,101,105,102,32,101,46,116,121,112,101,32,61,61,32,34,75,101,
-121,85,112,34,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,
-32,32,32,32,32,32,32,32,106,105,110,46,107,101,121,98,111,97,114,100,
-46,115,101,116,40,101,46,107,101,121,44,32,102,97,108,115,101,41,13,10,
-32,32,32,32,32,32,32,32,32,32,32,32,101,110,100,13,10,32,32,32,
-32,32,32,32,32,32,32,32,32,99,97,108,108,40,106,105,110,46,99,111,
-114,101,46,111,110,69,118,101,110,116,44,32,101,41,13,10,32,32,32,32,
-32,32,32,32,101,110,100,13,10,32,32,32,32,32,32,32,32,115,116,101,
-112,40,41,13,10,32,32,32,32,32,32,32,32,100,116,32,61,32,106,105,
-110,46,116,105,109,101,46,103,101,116,68,101,108,116,97,40,41,13,10,32,
-32,32,32,32,32,32,32,99,97,108,108,40,106,105,110,46,99,111,114,101,
-46,111,110,85,112,100,97,116,101,44,32,100,116,41,13,10,32,32,32,32,
-32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,99,108,101,
-97,114,40,41,32,32,32,32,32,32,32,32,13,10,32,32,32,32,32,32,
-32,32,99,97,108,108,40,106,105,110,46,99,111,114,101,46,111,110,68,114,
-97,119,41,13,10,32,32,32,32,32,32,32,32,106,105,110,46,103,114,97,
-112,104,105,99,115,46,112,114,101,115,101,110,116,40,41,13,10,32,32,32,
-32,32,32,32,32,106,105,110,46,116,105,109,101,46,115,108,101,101,112,40,
-48,46,48,48,49,41,13,10,32,32,32,32,101,110,100,13,10,101,110,100,
-13,10,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,45,
-45,32,66,111,111,116,32,103,97,109,101,13,10,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,13,10,13,10,45,45,32,68,105,115,112,108,97,121,
-32,101,114,114,111,114,32,109,101,115,115,97,103,101,46,13,10,108,111,99,
-97,108,32,102,117,110,99,116,105,111,110,32,111,110,69,114,114,111,114,40,
-109,115,103,41,32,13,10,32,32,32,32,106,105,110,46,97,117,100,105,111,
-46,100,101,115,116,114,111,121,40,41,13,10,32,32,32,32,106,105,110,46,
-103,114,97,112,104,105,99,115,46,115,104,111,119,87,105,110,100,111,119,40,
-41,13,10,32,32,32,32,108,111,99,97,108,32,101,114,114,32,61,32,34,
-69,114,114,111,114,58,92,110,34,32,46,46,32,109,115,103,32,46,46,32,
-34,92,110,34,32,46,46,32,100,101,98,117,103,46,116,114,97,99,101,98,
-97,99,107,40,41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,
-105,99,115,46,114,101,115,101,116,40,41,13,10,32,32,32,32,106,105,110,
-46,103,114,97,112,104,105,99,115,46,115,101,116,67,108,101,97,114,67,111,
-108,111,114,40,49,48,48,44,32,49,48,48,44,32,49,48,48,44,32,50,
-53,53,41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,
-115,46,99,108,101,97,114,40,41,13,10,32,32,32,32,106,105,110,46,103,
-114,97,112,104,105,99,115,46,112,114,105,110,116,40,101,114,114,44,32,53,
-44,32,53,41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,
-99,115,46,112,114,101,115,101,110,116,40,41,13,10,32,32,32,32,119,104,
-105,108,101,32,106,105,110,46,99,111,114,101,46,114,117,110,110,105,110,103,
-40,41,32,100,111,32,13,10,32,32,32,32,32,32,32,32,102,111,114,32,
-95,44,32,101,32,105,110,32,112,97,105,114,115,40,106,105,110,46,101,118,
-101,110,116,46,112,111,108,108,40,41,41,32,100,111,32,13,10,32,32,32,
-32,32,32,32,32,32,32,32,32,105,102,32,101,46,116,121,112,101,32,61,
-61,32,34,81,117,105,116,34,32,116,104,101,110,32,13,10,32,32,32,32,
-32,32,32,32,32,32,32,32,32,32,32,32,106,105,110,46,99,111,114,101,
-46,115,116,111,112,40,41,13,10,32,32,32,32,32,32,32,32,32,32,32,
-32,101,110,100,13,10,32,32,32,32,32,32,32,32,101,110,100,13,10,32,
-32,32,32,32,32,32,32,106,105,110,46,116,105,109,101,46,115,108,101,101,
-112,40,48,46,48,48,49,41,13,10,32,32,32,32,101,110,100,13,10,101,
-110,100,13,10,13,10,45,45,32,78,111,32,103,97,109,101,32,115,99,114,
-101,101,110,46,13,10,108,111,99,97,108,32,102,117,110,99,116,105,111,110,
-32,110,111,71,97,109,101,40,41,13,10,32,32,32,32,106,105,110,46,103,
-114,97,112,104,105,99,115,46,115,104,111,119,87,105,110,100,111,119,40,41,
-13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,114,
-101,115,101,116,40,41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,
-104,105,99,115,46,115,101,116,67,108,101,97,114,67,111,108,111,114,40,49,
-48,48,44,32,49,48,48,44,32,49,48,48,44,32,50,53,53,41,13,10,
-32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,99,108,101,
-97,114,40,41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,
-99,115,46,112,114,105,110,116,40,34,78,111,32,71,97,109,101,34,44,32,
-53,44,32,53,41,32,13,10,32,32,32,32,106,105,110,46,103,114,97,112,
-104,105,99,115,46,112,114,101,115,101,110,116,40,41,13,10,32,32,32,32,
-119,104,105,108,101,32,106,105,110,46,99,111,114,101,46,114,117,110,110,105,
-110,103,40,41,32,100,111,32,13,10,32,32,32,32,32,32,32,32,102,111,
-114,32,95,44,32,101,32,105,110,32,112,97,105,114,115,40,106,105,110,46,
-101,118,101,110,116,46,112,111,108,108,40,41,41,32,100,111,32,13,10,32,
-32,32,32,32,32,32,32,32,32,32,32,105,102,32,101,46,116,121,112,101,
-32,61,61,32,34,81,117,105,116,34,32,116,104,101,110,32,13,10,32,32,
-32,32,32,32,32,32,32,32,32,32,32,32,32,32,106,105,110,46,99,111,
-114,101,46,115,116,111,112,40,41,13,10,32,32,32,32,32,32,32,32,32,
-32,32,32,101,110,100,13,10,32,32,32,32,32,32,32,32,101,110,100,13,
-10,32,32,32,32,32,32,32,32,106,105,110,46,116,105,109,101,46,115,108,
-101,101,112,40,48,46,48,48,49,41,13,10,32,32,32,32,101,110,100,13,
-10,101,110,100,13,10,13,10,108,111,99,97,108,32,102,117,110,99,116,105,
-111,110,32,98,111,111,116,40,41,32,13,10,32,32,32,32,105,102,32,106,
-105,110,46,102,105,108,101,115,121,115,116,101,109,46,101,120,105,115,116,40,
-34,109,97,105,110,46,108,117,97,34,41,32,116,104,101,110,32,13,10,32,
-32,32,32,32,32,32,32,99,97,108,108,40,102,117,110,99,116,105,111,110,
-40,41,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,113,
-117,105,114,101,34,109,97,105,110,34,32,13,10,32,32,32,32,32,32,32,
-32,32,32,32,32,106,105,110,46,99,111,114,101,46,114,117,110,40,41,13,
-10,32,32,32,32,32,32,32,32,101,110,100,41,13,10,32,32,32,32,101,
-108,115,101,13,10,32,32,32,32,32,32,32,32,110,111,71,97,109,101,40,
-41,13,10,32,32,32,32,101,110,100,13,10,101,110,100,13,10,13,10,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,13,10,45,45,32,73,110,105,
-116,105,97,108,105,122,101,32,115,117,98,32,115,121,115,116,101,109,115,13,
+102,97,108,115,101,41,13,10,32,32,32,32,32,32,32,32,32,32,32,32,
+101,110,100,13,10,32,32,32,32,32,32,32,32,32,32,32,32,99,97,108,
+108,40,106,105,110,46,99,111,114,101,46,111,110,69,118,101,110,116,44,32,
+101,41,13,10,32,32,32,32,32,32,32,32,101,110,100,13,10,32,32,32,
+32,32,32,32,32,115,116,101,112,40,41,13,10,32,32,32,32,32,32,32,
+32,100,116,32,61,32,106,105,110,46,116,105,109,101,46,103,101,116,68,101,
+108,116,97,40,41,13,10,32,32,32,32,32,32,32,32,99,97,108,108,40,
+106,105,110,46,99,111,114,101,46,111,110,85,112,100,97,116,101,44,32,100,
+116,41,13,10,32,32,32,32,32,32,32,32,106,105,110,46,103,114,97,112,
+104,105,99,115,46,99,108,101,97,114,40,41,32,32,32,32,32,32,32,32,
+13,10,32,32,32,32,32,32,32,32,99,97,108,108,40,106,105,110,46,99,
+111,114,101,46,111,110,68,114,97,119,41,13,10,32,32,32,32,32,32,32,
+32,106,105,110,46,103,114,97,112,104,105,99,115,46,112,114,101,115,101,110,
+116,40,41,13,10,32,32,32,32,32,32,32,32,106,105,110,46,116,105,109,
+101,46,115,108,101,101,112,40,48,46,48,48,49,41,13,10,32,32,32,32,
+101,110,100,13,10,101,110,100,13,10,13,10,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,13,10,45,45,32,66,111,111,116,32,103,97,109,101,13,
10,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,13,10,106,105,
-110,46,97,117,100,105,111,46,105,110,105,116,40,41,13,10,106,105,110,46,
-103,114,97,112,104,105,99,115,46,105,110,105,116,40,106,105,110,46,99,111,
-110,102,105,103,41,13,10,13,10,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,13,10,45,45,32,66,111,111,116,32,103,97,109,101,13,10,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,13,10,13,10,120,112,99,97,108,
-108,40,98,111,111,116,44,32,111,110,69,114,114,111,114,41,13,10,13,10,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,45,45,32,68,101,
-115,116,114,111,121,32,115,117,98,45,115,121,115,116,101,109,115,13,10,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,13,10,13,10,106,105,110,46,
-103,114,97,112,104,105,99,115,46,100,101,115,116,114,111,121,40,41,13,10,
-106,105,110,46,97,117,100,105,111,46,100,101,115,116,114,111,121,40,41,13,
-10,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,45,45,
-32,81,117,105,116,32,103,97,109,101,13,10,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
-45,45,45,45,45,13,10,13,10,106,105,110,46,99,111,114,101,46,113,117,
-105,116,40,41,13,10
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,13,10,45,45,
+32,68,105,115,112,108,97,121,32,101,114,114,111,114,32,109,101,115,115,97,
+103,101,46,13,10,108,111,99,97,108,32,102,117,110,99,116,105,111,110,32,
+111,110,69,114,114,111,114,40,109,115,103,41,32,13,10,32,32,32,32,106,
+105,110,46,97,117,100,105,111,46,100,101,115,116,114,111,121,40,41,13,10,
+32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,115,104,111,
+119,87,105,110,100,111,119,40,41,13,10,32,32,32,32,108,111,99,97,108,
+32,101,114,114,32,61,32,34,69,114,114,111,114,58,92,110,34,32,46,46,
+32,109,115,103,32,46,46,32,34,92,110,34,32,46,46,32,100,101,98,117,
+103,46,116,114,97,99,101,98,97,99,107,40,41,13,10,32,32,32,32,106,
+105,110,46,103,114,97,112,104,105,99,115,46,114,101,115,101,116,40,41,13,
+10,32,32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,115,101,
+116,67,108,101,97,114,67,111,108,111,114,40,49,48,48,44,32,49,48,48,
+44,32,49,48,48,44,32,50,53,53,41,13,10,32,32,32,32,106,105,110,
+46,103,114,97,112,104,105,99,115,46,99,108,101,97,114,40,41,13,10,32,
+32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,112,114,105,110,
+116,40,101,114,114,44,32,53,44,32,53,41,13,10,32,32,32,32,106,105,
+110,46,103,114,97,112,104,105,99,115,46,112,114,101,115,101,110,116,40,41,
+13,10,32,32,32,32,119,104,105,108,101,32,106,105,110,46,99,111,114,101,
+46,114,117,110,110,105,110,103,40,41,32,100,111,32,13,10,32,32,32,32,
+32,32,32,32,102,111,114,32,95,44,32,101,32,105,110,32,112,97,105,114,
+115,40,106,105,110,46,101,118,101,110,116,46,112,111,108,108,40,41,41,32,
+100,111,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,
+101,46,116,121,112,101,32,61,61,32,34,81,117,105,116,34,32,116,104,101,
+110,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,
+106,105,110,46,99,111,114,101,46,115,116,111,112,40,41,13,10,32,32,32,
+32,32,32,32,32,32,32,32,32,101,110,100,13,10,32,32,32,32,32,32,
+32,32,101,110,100,13,10,32,32,32,32,32,32,32,32,106,105,110,46,116,
+105,109,101,46,115,108,101,101,112,40,48,46,48,48,49,41,13,10,32,32,
+32,32,101,110,100,13,10,101,110,100,13,10,13,10,45,45,32,78,111,32,
+103,97,109,101,32,115,99,114,101,101,110,46,13,10,108,111,99,97,108,32,
+102,117,110,99,116,105,111,110,32,110,111,71,97,109,101,40,41,13,10,32,
+32,32,32,106,105,110,46,103,114,97,112,104,105,99,115,46,115,104,111,119,
+87,105,110,100,111,119,40,41,13,10,32,32,32,32,106,105,110,46,103,114,
+97,112,104,105,99,115,46,114,101,115,101,116,40,41,13,10,32,32,32,32,
+106,105,110,46,103,114,97,112,104,105,99,115,46,115,101,116,67,108,101,97,
+114,67,111,108,111,114,40,49,48,48,44,32,49,48,48,44,32,49,48,48,
+44,32,50,53,53,41,13,10,32,32,32,32,106,105,110,46,103,114,97,112,
+104,105,99,115,46,99,108,101,97,114,40,41,13,10,32,32,32,32,106,105,
+110,46,103,114,97,112,104,105,99,115,46,112,114,105,110,116,40,34,78,111,
+32,71,97,109,101,34,44,32,53,44,32,53,41,32,13,10,32,32,32,32,
+106,105,110,46,103,114,97,112,104,105,99,115,46,112,114,101,115,101,110,116,
+40,41,13,10,32,32,32,32,119,104,105,108,101,32,106,105,110,46,99,111,
+114,101,46,114,117,110,110,105,110,103,40,41,32,100,111,32,13,10,32,32,
+32,32,32,32,32,32,102,111,114,32,95,44,32,101,32,105,110,32,112,97,
+105,114,115,40,106,105,110,46,101,118,101,110,116,46,112,111,108,108,40,41,
+41,32,100,111,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,105,
+102,32,101,46,116,121,112,101,32,61,61,32,34,81,117,105,116,34,32,116,
+104,101,110,32,13,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,
+32,32,106,105,110,46,99,111,114,101,46,115,116,111,112,40,41,13,10,32,
+32,32,32,32,32,32,32,32,32,32,32,101,110,100,13,10,32,32,32,32,
+32,32,32,32,101,110,100,13,10,32,32,32,32,32,32,32,32,106,105,110,
+46,116,105,109,101,46,115,108,101,101,112,40,48,46,48,48,49,41,13,10,
+32,32,32,32,101,110,100,13,10,101,110,100,13,10,13,10,108,111,99,97,
+108,32,102,117,110,99,116,105,111,110,32,98,111,111,116,40,41,32,13,10,
+32,32,32,32,105,102,32,106,105,110,46,102,105,108,101,115,121,115,116,101,
+109,46,101,120,105,115,116,40,34,109,97,105,110,46,108,117,97,34,41,32,
+116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,99,97,108,108,40,
+102,117,110,99,116,105,111,110,40,41,32,13,10,32,32,32,32,32,32,32,
+32,32,32,32,32,114,101,113,117,105,114,101,34,109,97,105,110,34,32,13,
+10,32,32,32,32,32,32,32,32,32,32,32,32,106,105,110,46,99,111,114,
+101,46,114,117,110,40,41,13,10,32,32,32,32,32,32,32,32,101,110,100,
+41,13,10,32,32,32,32,101,108,115,101,13,10,32,32,32,32,32,32,32,
+32,110,111,71,97,109,101,40,41,13,10,32,32,32,32,101,110,100,13,10,
+101,110,100,13,10,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+13,10,45,45,32,73,110,105,116,105,97,108,105,122,101,32,115,117,98,32,
+115,121,115,116,101,109,115,13,10,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,13,10,13,10,106,105,110,46,97,117,100,105,111,46,105,110,105,116,
+40,41,13,10,106,105,110,46,103,114,97,112,104,105,99,115,46,105,110,105,
+116,40,106,105,110,46,99,111,110,102,105,103,41,13,10,13,10,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,13,10,45,45,32,66,111,111,116,32,
+103,97,109,101,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,13,
+10,13,10,120,112,99,97,108,108,40,98,111,111,116,44,32,111,110,69,114,
+114,111,114,41,13,10,13,10,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,13,10,45,45,32,68,101,115,116,114,111,121,32,115,117,98,45,115,121,
+115,116,101,109,115,13,10,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+13,10,13,10,106,105,110,46,103,114,97,112,104,105,99,115,46,100,101,115,
+116,114,111,121,40,41,13,10,106,105,110,46,97,117,100,105,111,46,100,101,
+115,116,114,111,121,40,41,13,10,13,10,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,13,10,45,45,32,81,117,105,116,32,103,97,109,101,13,10,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
+45,45,45,45,45,45,45,45,45,45,45,45,45,13,10,13,10,106,105,110,
+46,99,111,114,101,46,113,117,105,116,40,41,13,10
};
diff --git a/src/libjin-lua/embed/embed.h b/src/libjin-lua/embed/embed.h
index f46c9ca..d67bedf 100644
--- a/src/libjin-lua/embed/embed.h
+++ b/src/libjin-lua/embed/embed.h
@@ -20,6 +20,7 @@ namespace JinEngine
#include "graphics.lua.h"
#include "keyboard.lua.h"
#include "mouse.lua.h"
+ #include "path.lua.h"
#include "app.lua.h"
// In order.
@@ -27,6 +28,7 @@ namespace JinEngine
{ "graphics.lua", graphics_lua },
{ "keyboard.lua", keyboard_lua },
{ "mouse.lua", mouse_lua },
+ { "path.lua", path_lua },
{ 0, 0 }
};
diff --git a/src/libjin-lua/embed/graphics.lua.h b/src/libjin-lua/embed/graphics.lua.h
index 47c5348..ba80565 100644
--- a/src/libjin-lua/embed/graphics.lua.h
+++ b/src/libjin-lua/embed/graphics.lua.h
@@ -1,3 +1,4 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char graphics_lua[] = {
13,10,106,105,110,46,103,114,97,112,104,105,99,115,32,61,32,106,105,110,
46,103,114,97,112,104,105,99,115,32,111,114,32,123,125,32,13,10,13,10,
@@ -84,59 +85,61 @@ static unsigned char graphics_lua[] = {
77,69,78,84,95,83,72,65,68,69,82,13,10,9,93,93,13,10,32,32,
32,32,106,103,46,83,104,97,100,101,114,115,46,83,104,97,112,101,32,61,
32,106,103,46,110,101,119,83,104,97,100,101,114,91,91,13,10,32,32,32,
-32,35,86,69,82,84,69,88,95,83,72,65,68,69,82,13,10,9,86,101,
-114,116,101,120,32,118,101,114,116,40,86,101,114,116,101,120,32,118,41,13,
-10,9,123,13,10,9,9,114,101,116,117,114,110,32,118,59,13,10,9,125,
-13,10,9,35,69,78,68,95,86,69,82,84,69,88,95,83,72,65,68,69,
-82,13,10,9,35,70,82,65,71,77,69,78,84,95,83,72,65,68,69,82,
-13,10,9,67,111,108,111,114,32,102,114,97,103,40,67,111,108,111,114,32,
-99,111,108,44,32,84,101,120,116,117,114,101,32,116,101,120,44,32,86,101,
-114,116,101,120,32,118,41,13,10,9,123,13,10,9,9,114,101,116,117,114,
-110,32,99,111,108,59,13,10,9,125,13,10,9,35,69,78,68,95,70,82,
-65,71,77,69,78,84,95,83,72,65,68,69,82,13,10,32,32,32,32,93,
-93,13,10,9,106,103,46,83,104,97,100,101,114,115,46,68,101,102,97,117,
-108,116,32,61,32,106,103,46,110,101,119,83,104,97,100,101,114,91,91,13,
-10,9,9,35,86,69,82,84,69,88,95,83,72,65,68,69,82,13,10,9,
-9,86,101,114,116,101,120,32,118,101,114,116,40,86,101,114,116,101,120,32,
-118,41,13,10,9,9,123,13,10,9,9,9,114,101,116,117,114,110,32,118,
-59,13,10,9,9,125,13,10,9,9,35,69,78,68,95,86,69,82,84,69,
-88,95,83,72,65,68,69,82,13,10,9,9,35,70,82,65,71,77,69,78,
-84,95,83,72,65,68,69,82,13,10,9,9,67,111,108,111,114,32,102,114,
-97,103,40,67,111,108,111,114,32,99,111,108,44,32,84,101,120,116,117,114,
-101,32,116,101,120,44,32,86,101,114,116,101,120,32,118,41,13,10,9,9,
-123,13,10,9,9,9,114,101,116,117,114,110,32,99,111,108,32,42,32,116,
-101,120,101,108,40,116,101,120,44,32,118,46,117,118,41,59,13,10,9,9,
-125,13,10,9,9,35,69,78,68,95,70,82,65,71,77,69,78,84,95,83,
-72,65,68,69,82,13,10,9,93,93,13,10,101,110,100,13,10,13,10,108,
-111,99,97,108,32,95,105,110,105,116,32,61,32,106,103,46,105,110,105,116,
-13,10,108,111,99,97,108,32,105,110,105,116,105,97,108,105,122,101,100,32,
-61,32,102,97,108,115,101,13,10,106,103,46,105,110,105,116,32,61,32,102,
-117,110,99,116,105,111,110,40,115,101,116,116,105,110,103,41,32,13,10,32,
-32,32,32,105,102,32,105,110,105,116,105,97,108,105,122,101,100,32,116,104,
-101,110,32,13,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,
-105,110,105,116,105,97,108,105,122,101,100,13,10,32,32,32,32,101,110,100,
-13,10,32,32,32,32,105,110,105,116,105,97,108,105,122,101,100,32,61,32,
-95,105,110,105,116,40,115,101,116,116,105,110,103,41,13,10,32,32,32,32,
-105,102,32,105,110,105,116,105,97,108,105,122,101,100,32,116,104,101,110,32,
-13,10,32,32,32,32,32,32,32,32,99,111,109,112,105,108,101,66,117,105,
-108,116,73,110,83,104,97,100,101,114,115,40,41,13,10,32,32,32,32,32,
-32,32,32,106,103,46,117,115,101,83,104,97,100,101,114,40,106,103,46,83,
-104,97,100,101,114,115,46,68,101,102,97,117,108,116,41,13,10,32,32,32,
-32,101,110,100,13,10,32,32,32,32,114,101,116,117,114,110,32,105,110,105,
-116,105,97,108,105,122,101,100,32,13,10,101,110,100,13,10,13,10,106,103,
-46,117,110,117,115,101,83,104,97,100,101,114,32,61,32,102,117,110,99,116,
-105,111,110,40,41,13,10,32,32,32,32,106,103,46,117,115,101,83,104,97,
-100,101,114,40,106,103,46,83,104,97,100,101,114,115,46,68,101,102,97,117,
-108,116,41,13,10,101,110,100,13,10,13,10,45,45,32,82,101,115,101,116,
-32,97,108,108,32,97,116,116,114,105,98,117,116,101,115,32,116,111,32,100,
-101,102,97,117,108,116,32,118,97,108,117,101,46,13,10,106,103,46,114,101,
-115,101,116,32,61,32,102,117,110,99,116,105,111,110,40,41,13,10,32,32,
-32,32,106,103,46,115,101,116,67,111,108,111,114,40,50,53,53,44,32,50,
-53,53,44,32,50,53,53,44,32,50,53,53,41,13,10,32,32,32,32,106,
-103,46,115,101,116,67,108,101,97,114,67,111,108,111,114,40,48,44,32,48,
-44,32,48,44,32,50,53,53,41,13,10,32,32,32,32,106,103,46,99,108,
-101,97,114,40,41,13,10,32,32,32,32,106,103,46,117,110,115,101,116,70,
-111,110,116,40,41,13,10,32,32,32,32,106,103,46,117,110,117,115,101,83,
-104,97,100,101,114,40,41,13,10,101,110,100,13,10
+32,32,32,32,32,35,86,69,82,84,69,88,95,83,72,65,68,69,82,13,
+10,9,32,32,32,32,86,101,114,116,101,120,32,118,101,114,116,40,86,101,
+114,116,101,120,32,118,41,13,10,9,32,32,32,32,123,13,10,9,9,32,
+32,32,32,114,101,116,117,114,110,32,118,59,13,10,9,32,32,32,32,125,
+13,10,9,32,32,32,32,35,69,78,68,95,86,69,82,84,69,88,95,83,
+72,65,68,69,82,13,10,9,32,32,32,32,35,70,82,65,71,77,69,78,
+84,95,83,72,65,68,69,82,13,10,9,32,32,32,32,67,111,108,111,114,
+32,102,114,97,103,40,67,111,108,111,114,32,99,111,108,44,32,84,101,120,
+116,117,114,101,32,116,101,120,44,32,86,101,114,116,101,120,32,118,41,13,
+10,9,32,32,32,32,123,13,10,9,9,32,32,32,32,114,101,116,117,114,
+110,32,99,111,108,59,13,10,9,32,32,32,32,125,13,10,9,32,32,32,
+32,35,69,78,68,95,70,82,65,71,77,69,78,84,95,83,72,65,68,69,
+82,13,10,32,32,32,32,93,93,13,10,9,106,103,46,83,104,97,100,101,
+114,115,46,68,101,102,97,117,108,116,32,61,32,106,103,46,110,101,119,83,
+104,97,100,101,114,91,91,13,10,9,9,35,86,69,82,84,69,88,95,83,
+72,65,68,69,82,13,10,9,9,86,101,114,116,101,120,32,118,101,114,116,
+40,86,101,114,116,101,120,32,118,41,13,10,9,9,123,13,10,9,9,9,
+114,101,116,117,114,110,32,118,59,13,10,9,9,125,13,10,9,9,35,69,
+78,68,95,86,69,82,84,69,88,95,83,72,65,68,69,82,13,10,9,9,
+35,70,82,65,71,77,69,78,84,95,83,72,65,68,69,82,13,10,9,9,
+67,111,108,111,114,32,102,114,97,103,40,67,111,108,111,114,32,99,111,108,
+44,32,84,101,120,116,117,114,101,32,116,101,120,44,32,86,101,114,116,101,
+120,32,118,41,13,10,9,9,123,13,10,9,9,9,114,101,116,117,114,110,
+32,99,111,108,32,42,32,116,101,120,101,108,40,116,101,120,44,32,118,46,
+117,118,41,59,13,10,9,9,125,13,10,9,9,35,69,78,68,95,70,82,
+65,71,77,69,78,84,95,83,72,65,68,69,82,13,10,9,93,93,13,10,
+101,110,100,13,10,13,10,108,111,99,97,108,32,95,105,110,105,116,32,61,
+32,106,103,46,105,110,105,116,13,10,108,111,99,97,108,32,105,110,105,116,
+105,97,108,105,122,101,100,32,61,32,102,97,108,115,101,13,10,106,103,46,
+105,110,105,116,32,61,32,102,117,110,99,116,105,111,110,40,115,101,116,116,
+105,110,103,41,32,13,10,32,32,32,32,105,102,32,105,110,105,116,105,97,
+108,105,122,101,100,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,
+32,114,101,116,117,114,110,32,105,110,105,116,105,97,108,105,122,101,100,13,
+10,32,32,32,32,101,110,100,13,10,32,32,32,32,105,110,105,116,105,97,
+108,105,122,101,100,32,61,32,95,105,110,105,116,40,115,101,116,116,105,110,
+103,41,13,10,32,32,32,32,105,102,32,105,110,105,116,105,97,108,105,122,
+101,100,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,99,111,
+109,112,105,108,101,66,117,105,108,116,73,110,83,104,97,100,101,114,115,40,
+41,13,10,32,32,32,32,32,32,32,32,106,103,46,117,115,101,83,104,97,
+100,101,114,40,106,103,46,83,104,97,100,101,114,115,46,70,111,110,116,41,
+13,10,32,32,32,32,101,110,100,13,10,32,32,32,32,114,101,116,117,114,
+110,32,105,110,105,116,105,97,108,105,122,101,100,32,13,10,101,110,100,13,
+10,13,10,106,103,46,117,110,117,115,101,83,104,97,100,101,114,32,61,32,
+102,117,110,99,116,105,111,110,40,41,13,10,32,32,32,32,106,103,46,117,
+115,101,83,104,97,100,101,114,40,106,103,46,83,104,97,100,101,114,115,46,
+70,111,110,116,41,13,10,101,110,100,13,10,13,10,45,45,32,82,101,115,
+101,116,32,97,108,108,32,97,116,116,114,105,98,117,116,101,115,32,116,111,
+32,100,101,102,97,117,108,116,32,118,97,108,117,101,46,13,10,106,103,46,
+114,101,115,101,116,32,61,32,102,117,110,99,116,105,111,110,40,41,13,10,
+32,32,32,32,106,103,46,115,101,116,67,111,108,111,114,40,50,53,53,44,
+32,50,53,53,44,32,50,53,53,44,32,50,53,53,41,13,10,32,32,32,
+32,106,103,46,115,101,116,67,108,101,97,114,67,111,108,111,114,40,48,44,
+32,48,44,32,48,44,32,50,53,53,41,13,10,32,32,32,32,106,103,46,
+99,108,101,97,114,40,41,13,10,32,32,32,32,106,103,46,117,110,115,101,
+116,70,111,110,116,40,41,13,10,32,32,32,32,106,103,46,117,110,117,115,
+101,83,104,97,100,101,114,40,41,13,10,101,110,100,13,10
};
diff --git a/src/libjin-lua/embed/keyboard.lua.h b/src/libjin-lua/embed/keyboard.lua.h
index c93169b..61a2ec8 100644
--- a/src/libjin-lua/embed/keyboard.lua.h
+++ b/src/libjin-lua/embed/keyboard.lua.h
@@ -1,3 +1,4 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char keyboard_lua[] = {
106,105,110,46,107,101,121,98,111,97,114,100,32,61,32,106,105,110,46,107,
101,121,98,111,97,114,100,32,111,114,32,123,125,32,13,10,13,10,108,111,
diff --git a/src/libjin-lua/embed/mouse.lua.h b/src/libjin-lua/embed/mouse.lua.h
index 6a1dcc4..e8caba2 100644
--- a/src/libjin-lua/embed/mouse.lua.h
+++ b/src/libjin-lua/embed/mouse.lua.h
@@ -1,3 +1,4 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char mouse_lua[] = {
106,105,110,46,109,111,117,115,101,32,61,32,106,105,110,46,109,111,117,115,
101,32,111,114,32,123,125,32,13,10,13,10,108,111,99,97,108,32,98,117,
diff --git a/src/libjin-lua/embed/net.lua.h b/src/libjin-lua/embed/net.lua.h
index 5953e8d..acd18bc 100644
--- a/src/libjin-lua/embed/net.lua.h
+++ b/src/libjin-lua/embed/net.lua.h
@@ -1,3 +1,4 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char net_lua[] = {
13,10,106,105,110,46,110,101,116,32,61,32,106,105,110,46,110,101,116,32,
111,114,32,123,125,32,13,10,13,10,108,111,99,97,108,32,106,110,32,61,
diff --git a/src/libjin-lua/embed/path.lua.h b/src/libjin-lua/embed/path.lua.h
index d72ac1e..e342938 100644
--- a/src/libjin-lua/embed/path.lua.h
+++ b/src/libjin-lua/embed/path.lua.h
@@ -1,16 +1,15 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char path_lua[] = {
106,105,110,46,112,97,116,104,32,61,32,106,105,110,46,112,97,116,104,32,
111,114,32,123,125,32,13,10,13,10,108,111,99,97,108,32,106,112,32,61,
32,106,105,110,46,112,97,116,104,13,10,13,10,45,45,32,71,97,109,101,
-32,114,111,111,116,32,100,105,114,101,99,116,111,114,121,32,13,10,106,105,
-110,46,95,114,111,111,116,32,61,32,110,105,108,32,13,10,13,10,45,45,
-32,71,101,116,32,102,117,108,108,32,112,97,116,104,32,111,102,32,97,32,
-103,105,118,101,110,32,112,97,116,104,32,13,10,102,117,110,99,116,105,111,
-110,32,106,105,110,46,112,97,116,104,46,102,117,108,108,40,112,97,116,104,
-41,13,10,32,32,32,32,108,111,99,97,108,32,114,111,111,116,32,61,32,
-106,105,110,46,95,100,105,114,32,46,46,32,39,47,39,32,46,46,32,106,
-105,110,46,95,97,114,103,118,91,50,93,13,10,32,32,32,32,114,101,116,
-117,114,110,32,114,111,111,116,32,46,46,32,39,47,39,32,46,46,32,112,
-97,116,104,32,13,10,101,110,100,13,10
+32,114,111,111,116,32,100,105,114,101,99,116,111,114,121,46,13,10,106,105,
+110,46,99,119,100,32,61,32,106,105,110,46,97,114,103,115,91,39,99,119,
+100,39,93,32,111,114,32,39,46,39,32,13,10,13,10,45,45,32,71,101,
+116,32,102,117,108,108,32,112,97,116,104,32,111,102,32,97,32,103,105,118,
+101,110,32,112,97,116,104,46,13,10,102,117,110,99,116,105,111,110,32,106,
+105,110,46,112,97,116,104,46,102,117,108,108,40,112,97,116,104,41,13,10,
+32,32,32,32,114,101,116,117,114,110,32,106,105,110,46,99,119,100,32,46,
+46,32,39,47,39,32,46,46,32,112,97,116,104,13,10,101,110,100,13,10
};
diff --git a/src/libjin-lua/embed/scripts/app.lua b/src/libjin-lua/embed/scripts/app.lua
index 1ba5402..9281584 100644
--- a/src/libjin-lua/embed/scripts/app.lua
+++ b/src/libjin-lua/embed/scripts/app.lua
@@ -1,6 +1,5 @@
-local cwd = jin.args['cwd'] or '.'
jin.filesystem.init()
-jin.filesystem.mount(cwd)
+jin.filesystem.mount(jin.cwd)
-------------------------------------------------------------------------
-- Config game
diff --git a/src/libjin-lua/embed/scripts/graphics/graphics.lua b/src/libjin-lua/embed/scripts/graphics/graphics.lua
index 859e29b..a0efe03 100644
--- a/src/libjin-lua/embed/scripts/graphics/graphics.lua
+++ b/src/libjin-lua/embed/scripts/graphics/graphics.lua
@@ -90,18 +90,18 @@ local function compileBuiltInShaders()
#END_FRAGMENT_SHADER
]]
jg.Shaders.Shape = jg.newShader[[
- #VERTEX_SHADER
- Vertex vert(Vertex v)
- {
- return v;
- }
- #END_VERTEX_SHADER
- #FRAGMENT_SHADER
- Color frag(Color col, Texture tex, Vertex v)
- {
- return col;
- }
- #END_FRAGMENT_SHADER
+ #VERTEX_SHADER
+ Vertex vert(Vertex v)
+ {
+ return v;
+ }
+ #END_VERTEX_SHADER
+ #FRAGMENT_SHADER
+ Color frag(Color col, Texture tex, Vertex v)
+ {
+ return col;
+ }
+ #END_FRAGMENT_SHADER
]]
jg.Shaders.Default = jg.newShader[[
#VERTEX_SHADER
@@ -128,13 +128,13 @@ jg.init = function(setting)
initialized = _init(setting)
if initialized then
compileBuiltInShaders()
- jg.useShader(jg.Shaders.Default)
+ jg.useShader(jg.Shaders.Font)
end
return initialized
end
jg.unuseShader = function()
- jg.useShader(jg.Shaders.Default)
+ jg.useShader(jg.Shaders.Font)
end
-- Reset all attributes to default value.
diff --git a/src/libjin-lua/embed/scripts/path/path.lua b/src/libjin-lua/embed/scripts/path/path.lua
index 5ecc05c..d41c167 100644
--- a/src/libjin-lua/embed/scripts/path/path.lua
+++ b/src/libjin-lua/embed/scripts/path/path.lua
@@ -2,11 +2,10 @@ jin.path = jin.path or {}
local jp = jin.path
--- Game root directory
-jin._root = nil
+-- Game root directory.
+jin.cwd = jin.args['cwd'] or '.'
--- Get full path of a given path
+-- Get full path of a given path.
function jin.path.full(path)
- local root = jin._dir .. '/' .. jin._argv[2]
- return root .. '/' .. path
+ return jin.cwd .. '/' .. path
end
diff --git a/src/libjin-lua/embed/state_machine.lua.h b/src/libjin-lua/embed/state_machine.lua.h
index 01dd1aa..d9fae08 100644
--- a/src/libjin-lua/embed/state_machine.lua.h
+++ b/src/libjin-lua/embed/state_machine.lua.h
@@ -1,3 +1,4 @@
+/*Auto generated, don't modify by hand.*/
static unsigned char state_machine_lua[] = {
106,105,110,46,97,105,32,61,32,106,105,110,46,97,105,32,111,114,32,123,
125,32,13,10,13,10,108,111,99,97,108,32,115,116,97,116,101,109,97,99,
diff --git a/src/libjin/game/je_application.cpp b/src/libjin/game/je_application.cpp
index 19a74a0..faf9d1f 100644
--- a/src/libjin/game/je_application.cpp
+++ b/src/libjin/game/je_application.cpp
@@ -73,6 +73,7 @@ namespace JinEngine
void Application::quitSystem()
{
+ SDL_Quit();
}
} // namespace Core
diff --git a/src/libjin/graphics/je_window.cpp b/src/libjin/graphics/je_window.cpp
index 3260e14..8ebddb9 100644
--- a/src/libjin/graphics/je_window.cpp
+++ b/src/libjin/graphics/je_window.cpp
@@ -105,12 +105,11 @@ namespace JinEngine
void Window::quitSystem()
{
jin_log_info("Quit window system.");
- // disable opengl
+
gl.disable(GL_BLEND);
gl.disable(GL_TEXTURE_2D);
- // close window
+
SDL_DestroyWindow(mWnd);
- SDL_Quit();
}
void Window::swapBuffers()