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 02:45:09 -0400
commit5aa20d099b9fe7539050a5baa4c70b678aeab64e (patch)
tree77a1d0658a46c5a1da9013d0d88af8430fb8ba53 /calibrate.c
parenta978c195a8b0cbf9ff1330ab8c6af1deb79a8b83 (diff)
downloadlibsurvive-5aa20d099b9fe7539050a5baa4c70b678aeab64e.tar.gz
libsurvive-5aa20d099b9fe7539050a5baa4c70b678aeab64e.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 );