From f372be188aa5341f38f96ef6fa5136ce4d57e368 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 4 Nov 2019 19:41:14 +0100 Subject: [PATCH] Output: Don't capitalize True and False for default boolean values --- Il2CppInspector/Reflection/FieldInfo.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Il2CppInspector/Reflection/FieldInfo.cs b/Il2CppInspector/Reflection/FieldInfo.cs index 83bb438..e78e01d 100644 --- a/Il2CppInspector/Reflection/FieldInfo.cs +++ b/Il2CppInspector/Reflection/FieldInfo.cs @@ -25,6 +25,8 @@ namespace Il2CppInspector.Reflection { get { if (!HasDefaultValue) return ""; + if (DefaultValue is bool) + return (bool) DefaultValue ? "true" : "false"; if (DefaultValue is string) return $"\"{DefaultValue}\""; if (!(DefaultValue is char))