summaryrefslogtreecommitdiff
path: root/src/crawl/crawl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-xsrc/crawl/crawl.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/crawl/crawl.cpp b/src/crawl/crawl.cpp
index 08d3dbf..3a8fdff 100755
--- a/src/crawl/crawl.cpp
+++ b/src/crawl/crawl.cpp
@@ -55,6 +55,12 @@ BOOL WINAPI termHandler( DWORD ctrlType )
#endif
+#ifdef WITH_LUA
+// TODO: should be in the laoding function of libcrawl
+#include "tolua.h"
+#include "URLLua.hpp"
+#endif
+
static int counter = 0;
int main( int /* argc */, char *argv[] )
@@ -281,6 +287,11 @@ int main( int /* argc */, char *argv[] )
LOG( logNOTICE ) << "Crawler stopped.. normal shutdown..";
+#ifdef WITH_LUA
+ // TODO: should be in the laoding function of libcrawl
+ tolua_URL_open( luaVm.handle( ) );
+#endif
+
luaVm.executeMain( );
//luaVm.dumpState( );