mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-12 07:11:51 +00:00
Handle Wow6432Node implicit layers key not being present
This commit is contained in:
1 parent
d502dd109d
commit
87cd6a1d4d
1 file changed
+17
-10
+17
-10
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user