diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-04 01:27:25 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-04 01:27:25 -0700 |
commit | 4e183dbc4cf61855bd4353017683e02f19f89461 (patch) | |
tree | a6d7dbd236a11710f4a9a72fbd76fc700b4956e0 /src/main.cpp | |
parent | 90e4545e2e59462786169637fe58b574d07b9ee1 (diff) | |
download | stage-4e183dbc4cf61855bd4353017683e02f19f89461.tar.gz stage-4e183dbc4cf61855bd4353017683e02f19f89461.tar.bz2 stage-4e183dbc4cf61855bd4353017683e02f19f89461.tar.xz stage-4e183dbc4cf61855bd4353017683e02f19f89461.zip |
Mingw builds automaticaly now.0.01
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7e2ef7f..262e7c4 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -18,10 +18,15 @@ int main( int argc, char *argv[] ) | |||
18 | Options &opt = Options::getInstance(); | 18 | Options &opt = Options::getInstance(); |
19 | opt.parse( argc, argv ); | 19 | opt.parse( argc, argv ); |
20 | 20 | ||
21 | if( opt.sFile.isEmpty() ) | ||
22 | { | ||
23 | sio << "You must specify a stage script filename." << sio.nl; | ||
24 | return 1; | ||
25 | } | ||
21 | srandom( time( NULL ) ); | 26 | srandom( time( NULL ) ); |
22 | 27 | ||
23 | GameBuilder bld; | 28 | GameBuilder bld; |
24 | bld.parse( argv[1] ); | 29 | bld.parse( opt.sFile ); |
25 | Game *pGame = bld.getGame(); | 30 | Game *pGame = bld.getGame(); |
26 | 31 | ||
27 | GameState gs( pGame ); | 32 | GameState gs( pGame ); |