summaryrefslogtreecommitdiff
path: root/src/crawl/crawl.cpp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-01 20:30:01 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-01 20:30:01 +0200
commitee52b3eab8cc7feb49fa6db964b94b35e2bc8bac (patch)
tree19836bc002121846a897e1d54014d2bed8278422 /src/crawl/crawl.cpp
parenta8b82e12caea9f2ef6ea57239be47e31a7bba5c9 (diff)
downloadcrawler-ee52b3eab8cc7feb49fa6db964b94b35e2bc8bac.tar.gz
crawler-ee52b3eab8cc7feb49fa6db964b94b35e2bc8bac.tar.bz2
reading some Lua globals
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-xsrc/crawl/crawl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crawl/crawl.cpp b/src/crawl/crawl.cpp
index f10075f..4f3eb00 100755
--- a/src/crawl/crawl.cpp
+++ b/src/crawl/crawl.cpp
@@ -66,7 +66,8 @@ int main( int /* argc */, char *argv[] )
Logger::instance( ).openConsoleLog( logDEBUG );
luaVm.loadSource( argv[1] );
-
+ luaVm.executeMain( );
+
#ifndef _WIN32
struct sigaction sa;
memset( &sa, 0, sizeof( struct sigaction ) );
@@ -277,6 +278,8 @@ int main( int /* argc */, char *argv[] )
frontiers.destroy( frontier );
LOG( logNOTICE ) << "Crawler stopped.. normal shutdown..";
+
+ luaVm.dumpState( );
return 0;
} catch( exception &e ) {