diff options
author | Michael Turvey <mturvey6@gmail.com> | 2017-03-12 12:28:10 -0700 |
---|---|---|
committer | Michael Turvey <mturvey6@gmail.com> | 2017-03-12 12:28:10 -0700 |
commit | 121afb94493a7379ce39d76bffb61c898e6aebf0 (patch) | |
tree | e9abd71220f63e9a7ad55745131a25725e88e127 /test.c | |
parent | 0ed5073a47e9aad9f15db1adbaddd822871d981c (diff) | |
download | libsurvive-121afb94493a7379ce39d76bffb61c898e6aebf0.tar.gz libsurvive-121afb94493a7379ce39d76bffb61c898e6aebf0.tar.bz2 |
More changes to gracefully support a tracker
Diffstat (limited to 'test.c')
-rwxr-xr-x[-rw-r--r--] | test.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |