diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-01 20:30:01 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-01 20:30:01 +0200 |
commit | ee52b3eab8cc7feb49fa6db964b94b35e2bc8bac (patch) | |
tree | 19836bc002121846a897e1d54014d2bed8278422 /src/crawl/crawl.cpp | |
parent | a8b82e12caea9f2ef6ea57239be47e31a7bba5c9 (diff) | |
download | crawler-ee52b3eab8cc7feb49fa6db964b94b35e2bc8bac.tar.gz crawler-ee52b3eab8cc7feb49fa6db964b94b35e2bc8bac.tar.bz2 |
reading some Lua globals
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-x | src/crawl/crawl.cpp | 5 |
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 ) { |