aboutsummaryrefslogtreecommitdiff
path: root/calibrate.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-18 02:45:09 -0400
committercnlohr <lohr85@gmail.com>2018-03-18 22:21:59 -0400
commit179d8a02e231fe853831cdf886c9196929303adb (patch)
tree7de8df2fc9ef4d167398caebffe906985ed0cb54 /calibrate.c
parentd21999e85f29edae7de8abdfb293da870e7fad47 (diff)
downloadlibsurvive-179d8a02e231fe853831cdf886c9196929303adb.tar.gz
libsurvive-179d8a02e231fe853831cdf886c9196929303adb.tar.bz2
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.
Diffstat (limited to 'calibrate.c')
-rw-r--r--calibrate.c9
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 );