diff --git a/oculus-restful.sdf b/oculus-restful.sdf new file mode 100644 index 0000000..93c76cf Binary files /dev/null and b/oculus-restful.sdf differ diff --git a/oculus-restful.v11.suo b/oculus-restful.v11.suo new file mode 100644 index 0000000..c8e2e87 Binary files /dev/null and b/oculus-restful.v11.suo differ diff --git a/src/main.cpp b/src/main.cpp index 2e704ad..7a105b4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -61,13 +61,16 @@ int main(int argc, char **argv) { // printf("pHMD: %X\n", (void *)pHMD); if (!pHMD) { printf("No HMD found.\n"); - return 1; + //return 1; + } + else if (pHMD) { + pSensor = *pHMD->GetSensor(); + HMDInfo hmdInfo; + pHMD->GetDeviceInfo(&hmdInfo); + if (pSensor) + FusionResult.AttachToSensor(pSensor); } - pSensor = *pHMD->GetSensor(); - HMDInfo hmdInfo; - pHMD->GetDeviceInfo(&hmdInfo); - if (pSensor) - FusionResult.AttachToSensor(pSensor); + struct MHD_Daemon * d; d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, 50000, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); if (d == NULL) {