Handle Wow6432Node implicit layers key not being present

This commit is contained in:
baldurk
2016-02-04 21:37:17 +01:00
parent d502dd109d
commit 87cd6a1d4d
+17 -10
View File
@@ -260,18 +260,25 @@ namespace renderdocui.Code
myJSON = Path.GetFullPath(GetVulkanJSONPath(true));
key = GetVulkanImplicitLayersKey(false, true);
names = key.GetValueNames();
foreach (var n in names)
if (key == null)
{
if (Path.GetFullPath(n) == myJSON)
thisRegistered = false;
}
else
{
names = key.GetValueNames();
foreach (var n in names)
{
thisRegistered = true;
}
else if (n.IndexOf("renderdoc.json") > 0)
{
hasOtherJSON = true;
others.Add(Path.GetFullPath(n));
if (Path.GetFullPath(n) == myJSON)
{
thisRegistered = true;
}
else if (n.IndexOf("renderdoc.json") > 0)
{
hasOtherJSON = true;
others.Add(Path.GetFullPath(n));
}
}
}
}