Updated OpenXR runtime switch script with SteamVR's runtime
#Requires -RunAsAdministrator
param(
[switch]$wmr = $false,
- [switch]$oculus = $false
+ [switch]$oculus = $false,
+ [switch]$steamvr = $false
)
$key = "HKLM:\SOFTWARE\Khronos\OpenXR\1"
@@ -12,8 +13,10 @@ if ($wmr -eq $true) {
$runtime = "C:\WINDOWS\system32\MixedRealityRuntime.json"
} elseif ($oculus -eq $true) {
$runtime = "C:\Program Files\Oculus\Support\oculus-runtime\oculus_openxr_64.json"
+} elseif ($steamvr -eq $true) {
+ $runtime = "C:\Program Files (x86)\Steam\steamapps\common\SteamVR\steamxr_win64.json"
} else {
- Write-Host "Please specify a runtime switch! -WMR or -Oculus" -ForegroundColor red
+ Write-Host "Please specify a runtime switch! -WMR, -SteamVR, or -Oculus" -ForegroundColor red
exit
}
