Skip to content

Commit

Permalink
Fix bools
Browse files Browse the repository at this point in the history
  • Loading branch information
Caraxi committed Oct 8, 2023
1 parent 7a38a81 commit 93bf308
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Debugging/DebugManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,12 @@ public static unsafe void PrintOutObject(object obj, ulong addr, List<string> pa
if (fixedBuffer != null) {
PrintOutValue(addr + offsetAddress, new List<string>(path) { f.Name }, f.FieldType, f.GetValue(obj), f);
} else {
PrintOutValue(addr + offsetAddress, new List<string>(path) { f.Name }, f.FieldType, f.GetValue(obj), f);
if (f.FieldType == typeof(bool) && fullFieldName.StartsWith("FFXIVClientStructs.FFXIV")) {
var b = *(byte*)(addr + offsetAddress);
PrintOutValue(addr + offsetAddress, new List<string>(path) { f.Name }, f.FieldType, b != 0, f);
} else {
PrintOutValue(addr + offsetAddress, new List<string>(path) { f.Name }, f.FieldType, f.GetValue(obj), f);
}
}
break;
}
Expand Down

0 comments on commit 93bf308

Please sign in to comment.