aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-03-13 01:01:43 -0400
committercnlohr <lohr85@gmail.com>2017-03-13 01:01:43 -0400
commit44dc07e5fff7421289397ecd1051bd56012faac6 (patch)
treefa860154ac3bcd66955395d7a053c03b98943399 /test.c
parent767c46b76383be63926c7ec2a74e2dd9508f60d8 (diff)
parentab32fd2966df3f6c385f281adaa4fc5af21aed57 (diff)
downloadlibsurvive-44dc07e5fff7421289397ecd1051bd56012faac6.tar.gz
libsurvive-44dc07e5fff7421289397ecd1051bd56012faac6.tar.bz2
Merge branch 'mwturvey-TrackerSupport2'
Diffstat (limited to 'test.c')
-rwxr-xr-x[-rw-r--r--]test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.c b/test.c
index 9dc3631..a7da490 100644..100755
--- 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)
{