From 179d8a02e231fe853831cdf886c9196929303adb Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sun, 18 Mar 2018 02:45:09 -0400 Subject: Moving things over... still todo: * Make functions for changing temp configs. * Make functions for config_read_str but where it checks the temp one first. * Parse command-line options. --- calibrate.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'calibrate.c') 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 ); -- cgit v1.2.3