diff --git a/OpenXR-Runtime-Manager/OpenXR-Runtime-Manager/RuntimeManager.cs b/OpenXR-Runtime-Manager/OpenXR-Runtime-Manager/RuntimeManager.cs index 721be31..aa69a07 100644 --- a/OpenXR-Runtime-Manager/OpenXR-Runtime-Manager/RuntimeManager.cs +++ b/OpenXR-Runtime-Manager/OpenXR-Runtime-Manager/RuntimeManager.cs @@ -79,6 +79,7 @@ private Runtime ReadManifest(string runtimeManifestPath) private bool GetAvaialbleRuntimesFromRegistry() { + Debug.Print("Looking for AvailableRuntimes in the registry"); bool hasAppended = false; RegistryKey openXRv1Key = Registry.LocalMachine.OpenSubKey(GetKhronosOpenXRVersionRegistryKeyPath()); RegistryKey availableRuntimesKey = openXRv1Key?.OpenSubKey("AvailableRuntimes"); @@ -86,12 +87,13 @@ private bool GetAvaialbleRuntimesFromRegistry() if(availableRuntimesKey != null) { var availableRuntimes = availableRuntimesKey.GetValueNames(); - - foreach(string runtimeManifestPath in availableRuntimes) + foreach(string runtimeManifestPath in availableRuntimes) { + Debug.Print($"Manifest path in registry : {runtimeManifestPath}"); if (availableRuntimesKey.GetValue(runtimeManifestPath).Equals(0)) { var availableRuntimeManifest = ReadManifest(runtimeManifestPath); + Debug.Print($"Read manifest for {availableRuntimeManifest.Name}"); if (availableRuntimes != null) { _availableRuntimes[availableRuntimeManifest.Name] = availableRuntimeManifest; @@ -198,7 +200,7 @@ public RuntimeManager() if(!GetActiveRuntimeFromRegistry()) Debug.WriteLine("Failed to get current runtime"); if(!GetAvaialbleRuntimesFromRegistry()) - Debug.Write("Failed to get available runtimes from registry"); + Debug.WriteLine("Failed to get available runtimes from registry"); if (!ProbeForSteamVRInstallationPath()) {