From 121afb94493a7379ce39d76bffb61c898e6aebf0 Mon Sep 17 00:00:00 2001 From: Michael Turvey Date: Sun, 12 Mar 2017 12:28:10 -0700 Subject: More changes to gracefully support a tracker --- test.c | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 test.c (limited to 'test.c') diff --git a/test.c b/test.c old mode 100644 new mode 100755 index 9dc3631..a7da490 --- a/test.c +++ b/test.c @@ -17,6 +17,8 @@ static void dump_iface( struct SurviveObject * so, const char * prefix ) FILE * f; char fname[1024]; + if (!so) { return; } + sprintf( fname, "%s_points.csv", prefix ); f = fopen( fname, "w" ); for( i = 0; i < so->nr_locations; i++ ) @@ -53,6 +55,7 @@ int main() dump_iface( survive_get_so_by_name( ctx, "HMD" ), "HMD" ); dump_iface( survive_get_so_by_name( ctx, "WM0" ), "WM0" ); dump_iface( survive_get_so_by_name( ctx, "WM1" ), "WM1" ); + dump_iface( survive_get_so_by_name( ctx, "TR0" ), "TR0" ); while(survive_poll(ctx) == 0) { -- cgit v1.2.3