summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.cpp
diff options
context:
space:
mode:
authormniip <mniip@mniip.com>2013-05-04 23:09:08 (GMT)
committer mniip <mniip@mniip.com>2013-05-04 23:09:08 (GMT)
commit69bf9e1058494bc78c620c9cd9a90cb2bc4f31bc (patch)
tree404080f2baef6839310adfea016d1a7a98d29e2d /src/cat/LuaScriptInterface.cpp
parente7b29ab9b5e037a8896c62f0473cae8d353d5114 (diff)
downloadpowder-69bf9e1058494bc78c620c9cd9a90cb2bc4f31bc.zip
powder-69bf9e1058494bc78c620c9cd9a90cb2bc4f31bc.tar.gz
Fix the luaopen_socket_core loader; derp me
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
-rw-r--r--src/cat/LuaScriptInterface.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index d96f53c..69717ff 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -94,6 +94,15 @@ LuaScriptInterface::LuaScriptInterface(GameController * c, GameModel * m):
luaL_openlibs(l);
luaopen_bit(l);
luaopen_socket_core(l);
+ lua_getglobal(l, "package");
+ lua_pushstring(l, "loaded");
+ lua_rawget(l, -2);
+ lua_pushstring(l, "socket");
+ lua_rawget(l, -2);
+ lua_pushstring(l, "socket.core");
+ lua_pushvalue(l, -2);
+ lua_rawset(l, -4);
+ lua_pop(l, 3);
luaopen_socket(l);
lua_pushstring(l, "Luacon_ci");