aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-07-06 09:42:49 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-07-06 09:42:49 -0600
commit0cadc2d0efbdba661f3c41e6bca43c8cefb283b7 (patch)
treec7cc1b9a85cd12d499ba78f8c5ba3f4d192e3b98 /src/survive_cal.c
parent4682f04fe7082581a13fd0dfd1c256352455ffda (diff)
downloadlibsurvive-0cadc2d0efbdba661f3c41e6bca43c8cefb283b7.tar.gz
libsurvive-0cadc2d0efbdba661f3c41e6bca43c8cefb283b7.tar.bz2
Fixed symbol enumeration for windows
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-xsrc/survive_cal.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c
index 79519b6..7d32a07 100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -157,9 +157,11 @@ void survive_cal_install( struct SurviveContext * ctx )
// setting the required trackers for calibration to be permissive to make it easier for a newbie to start--
// basically, libsurvive will detect whatever they have plugged in and start using that.
-// const char * RequiredTrackersForCal = config_read_str(ctx->global_config_values, "RequiredTrackersForCal", "HMD,WM0,WM1");
const char *RequiredTrackersForCal = survive_configs(ctx, "requiredtrackersforcal", SC_SETCONFIG, "");
- const uint32_t AllowAllTrackersForCal = survive_configi(ctx, "allowalltrackersforcal", SC_SETCONFIG, 0);
+
+ // If there are no mandatory trackers for calibration; by default just accept whatever it is that the person has.
+ const uint32_t AllowAllTrackersForCal = survive_configi(ctx, "allowalltrackersforcal", SC_SETCONFIG, strlen(RequiredTrackersForCal) == 0);
+
size_t requiredTrackersFound = 0;
for (int j=0; j < ctx->objs_ct; j++)
@@ -185,7 +187,7 @@ void survive_cal_install( struct SurviveContext * ctx )
{
SV_INFO("Calibration is NOT using %s; device count exceeds MAX_DEVICES_TO_CAL", ctx->objs[j]->codename);
}
- }
+ }
}