Skip to content

Commit

Permalink
Fixed Quest 3 detection
Browse files Browse the repository at this point in the history
- Thanks to Tatenshi for idea and joerkig with iamuss76 for testing
  • Loading branch information
NSGolova committed Nov 30, 2023
1 parent 7f48238 commit 25b933e
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/Enhancers/UserEnhancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 25b933e

Please sign in to comment.