summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.cpp
diff options
context:
space:
mode:
authormniip <mniip@mniip.com>2013-05-02 18:41:01 (GMT)
committer mniip <mniip@mniip.com>2013-05-02 18:41:01 (GMT)
commite7b29ab9b5e037a8896c62f0473cae8d353d5114 (patch)
tree503fc881969e57cb521fbf551fcede513c1f12fe /src/cat/LuaScriptInterface.cpp
parent2eaed9c9d478292f18d8a6aea9d2c9c869b26911 (diff)
downloadpowder-e7b29ab9b5e037a8896c62f0473cae8d353d5114.zip
powder-e7b29ab9b5e037a8896c62f0473cae8d353d5114.tar.gz
statically linked, or better to say, builtin luasocket
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
-rw-r--r--src/cat/LuaScriptInterface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index 74757e5..d96f53c 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -46,7 +46,9 @@ extern "C"
#include <sys/stat.h>
#include <dirent.h>
#include <time.h>
+#include "socket/luasocket.h"
}
+#include "socket/socket.lua.h"
GameModel * luacon_model;
GameController * luacon_controller;
@@ -91,6 +93,8 @@ LuaScriptInterface::LuaScriptInterface(GameController * c, GameModel * m):
l = lua_open();
luaL_openlibs(l);
luaopen_bit(l);
+ luaopen_socket_core(l);
+ luaopen_socket(l);
lua_pushstring(l, "Luacon_ci");
lua_pushlightuserdata(l, this);