mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-26 14:41:49 +01:00
fix: improve SeString integer decoding and encoding
This commit is contained in:
parent
2aacbee1c8
commit
5d611de8da
5 changed files with 32 additions and 279 deletions
|
|
@ -109,15 +109,5 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
|
|||
{
|
||||
this.colorKey = (ushort)GetInteger(reader);
|
||||
}
|
||||
|
||||
protected override byte GetMarkerForIntegerBytes(byte[] bytes)
|
||||
{
|
||||
return bytes.Length switch
|
||||
{
|
||||
// a single byte of 0x01 is used to 'disable' color, and has no marker
|
||||
1 => (byte)IntegerType.None,
|
||||
_ => base.GetMarkerForIntegerBytes(bytes)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue