Fix loading of binary and canonical constants

This commit is contained in:
Yoshi Askharoun
2024-12-29 15:33:10 -06:00
parent 845f241702
commit 58b82c1e64
2 changed files with 38 additions and 24 deletions
+2
View File
@@ -328,6 +328,8 @@ public class Disassembler
return new StringEncodedConstantDirective(constantName, qualifiedTypeName, encodedValue);
}
// TODO: How are canonical instances usually handled? Are they always loaded by
// converting the canonical name as a string to the base type?
// Custom handling for ILayout
if (constantValue is Layout.ILayout constantLayout && Layout.PredefinedLayouts.TryConvertToString(constantLayout, out var constantLayoutString))
{