diff options
Diffstat (limited to 'calibrate.c')
-rw-r--r-- | calibrate.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/calibrate.c b/calibrate.c index b4325b0..3eef27c 100644 --- a/calibrate.c +++ b/calibrate.c @@ -14,7 +14,6 @@ struct SurviveContext * ctx; int quit = 0; -static int LighthouseCount = 0; void HandleKey( int keycode, int bDown ) { @@ -389,10 +388,12 @@ void * GuiThread( void * jnk ) } int SurviveThreadLoaded=0; +int gargc; +char * const * gargv; void * SurviveThread(void *jnk) { - ctx = survive_init( 0 ); + ctx = survive_init( gargc, gargv ); uint8_t i =0; @@ -425,8 +426,10 @@ void * SurviveThread(void *jnk) } -int main() +int main( int argc, char ** argv ) { + gargc = argc; + gargv = argv; // Create the survive thread OGCreateThread( SurviveThread, 0 ); |