ramwatch: print diffs as integers always, fixes spurious - display as well as what I assume is a combination of unwanted and illogical behaviour attempting to display it as the same format as the value

This commit is contained in:
zeromus 2017-06-27 16:20:04 -05:00
parent 7318c6a9f6
commit f536002053
3 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ namespace BizHawk.Client.Common
diff = "-";
}
return $"{diff}{FormatValue((byte)Math.Abs(diffVal))}";
return $"{diff}{((byte)Math.Abs(diffVal))}";
}
}

View File

@ -231,7 +231,7 @@ namespace BizHawk.Client.Common
/// Get a string representation of difference
/// between current value and the previous one
/// </summary>
public override string Diff => FormatValue(_previous - _value);
public override string Diff => (_previous - _value).ToString();
/// <summary>
/// Get the maximum possible value

View File

@ -229,7 +229,7 @@ namespace BizHawk.Client.Common
diff = "-";
}
return $"{diff}{FormatValue((ushort)Math.Abs(diffVal))}";
return $"{diff}{((ushort)Math.Abs(diffVal))}";
}
}