From 25b933ea6a57b6f22b22c1993a5448109df36f3e Mon Sep 17 00:00:00 2001 From: golova Date: Thu, 30 Nov 2023 22:45:41 +0100 Subject: [PATCH] Fixed Quest 3 detection - Thanks to Tatenshi for idea and joerkig with iamuss76 for testing --- src/Enhancers/UserEnhancer.cpp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/Enhancers/UserEnhancer.cpp b/src/Enhancers/UserEnhancer.cpp index 6189659..0caa889 100644 --- a/src/Enhancers/UserEnhancer.cpp +++ b/src/Enhancers/UserEnhancer.cpp @@ -31,14 +31,22 @@ void UserEnhancer::Enhance(Replay& replay) case GlobalNamespace::OVRPlugin::SystemHeadset::Oculus_Quest_2: replay.info.hmd = "Oculus Quest 2"; break; - case GlobalNamespace::OVRPlugin::SystemHeadset::Placeholder_10: - replay.info.hmd = "Meta Quest Pro"; - break; - case GlobalNamespace::OVRPlugin::SystemHeadset::Placeholder_11: - replay.info.hmd = "Meta Quest 3"; - break; default: - replay.info.hmd = "Unknown"; + switch (sysconf(_SC_NPROCESSORS_CONF)) + { + case 4: + replay.info.hmd = "Oculus Quest"; + break; + case 8: + replay.info.hmd = "Oculus Quest Pro"; + break; + case 6: + replay.info.hmd = "Meta Quest 3"; + break; + default: + replay.info.hmd = "Unknown"; + break; + } break; } switch (GlobalNamespace::OVRPlugin::GetActiveController())