diff options
author | cnlohr <lohr85@gmail.com> | 2018-03-10 23:57:58 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-03-10 23:57:58 -0500 |
commit | a2ba45f43ae02b1e39b1816fe9c1c70c54a7f046 (patch) | |
tree | b0a916dad0fb979e997d069a0f6c3184279e479a /src/survive_vive.c | |
parent | 5ae3acb6d63301ac14beaebe692f5af680e65c26 (diff) | |
download | libsurvive-a2ba45f43ae02b1e39b1816fe9c1c70c54a7f046.tar.gz libsurvive-a2ba45f43ae02b1e39b1816fe9c1c70c54a7f046.tar.bz2 |
Switch from pos,quat to pose. Also change initialization order.
Diffstat (limited to 'src/survive_vive.c')
-rwxr-xr-x | src/survive_vive.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/survive_vive.c b/src/survive_vive.c index b3d990a..5001efd 100755 --- a/src/survive_vive.c +++ b/src/survive_vive.c @@ -1655,6 +1655,11 @@ static int LoadConfig( SurviveViveData * sv, SurviveObject * so, int devno, int int len = survive_get_config( &ct0conf, sv, devno, iface, extra_magic ); printf( "Loading config: %d\n", len ); + if( len < 0 ) + { + return len; + } + { char raw_fname[100]; sprintf( raw_fname, "%s_config.json", so->codename ); |