summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-05-04 21:26:49 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-05-04 21:26:49 (GMT)
commit66e21ce0498f623ccffcee95b1fdcbc218464caa (patch)
tree83de913847ce0b1808c46a1bdedb1c4c6c66296d /src/cat/LuaScriptInterface.cpp
parent3799d5ed86e7b508b39544cad3b3346655c804f1 (diff)
parente7b29ab9b5e037a8896c62f0473cae8d353d5114 (diff)
downloadpowder-66e21ce0498f623ccffcee95b1fdcbc218464caa.zip
powder-66e21ce0498f623ccffcee95b1fdcbc218464caa.tar.gz
Merge pull request #131 from mniip/lua
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 452e47a..0331717 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;
@@ -92,6 +94,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);