fix vive pro detection issues by introducing additional device identifier
This commit is contained in:
@@ -121,14 +121,18 @@ bool FSGHMDTracker::IsHtcVivePro()
|
||||
static const FString ViveDeviceIdentifier{TEXT("Vive")};
|
||||
static const FString SRanipalDeviceIdentifier{TEXT("SRanipal")};
|
||||
|
||||
static const FName DeviceIdentifier2{TEXT("SteamVR/OpenXR : lighthouse")};
|
||||
static const FString LighthouseIdentifier{TEXT("lighthouse")};
|
||||
|
||||
const FName DeviceName{GetDeviceName()};
|
||||
|
||||
bool bNameMatches = DeviceName == DeviceIdentifier;
|
||||
bool bNameMatches = DeviceName == DeviceIdentifier || DeviceName == DeviceIdentifier2;
|
||||
if (!bNameMatches)
|
||||
{
|
||||
const FString DeviceNameString{GetDeviceName().ToString()};
|
||||
bNameMatches = DeviceNameString.Contains(ViveDeviceIdentifier)
|
||||
|| DeviceNameString.Contains(SRanipalDeviceIdentifier);
|
||||
|| DeviceNameString.Contains(SRanipalDeviceIdentifier)
|
||||
|| DeviceNameString.Contains(LighthouseIdentifier);
|
||||
}
|
||||
|
||||
bool bResolutionMatches = false;
|
||||
|
||||
Reference in New Issue
Block a user