Skip to content

Commit

Permalink
Update Unreal2.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Feb 4, 2024
1 parent d92f1e9 commit df9a906
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions OpenGSQ/Protocols/Unreal2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,13 @@ public static string StripColor(string text)
}

/// <summary>
/// Reads a string from a BinaryReader, decodes it, and strips color codes.
/// Reads a string from a binary reader.
/// </summary>
/// <param name="br">The BinaryReader to read the string from.</param>
/// <returns>The decoded string with color codes stripped.</returns>
/// <param name="br">The binary reader to read the string from.</param>
/// <param name="stripColor">Optional parameter. If set to true, color information will be stripped from the string. Default is false.</param>
/// <returns>
/// The string read from the binary reader. If 'stripColor' is true, the returned string will have color information stripped.
/// </returns>
protected string ReadString(BinaryReader br, bool stripColor = false)
{
int length = br.ReadByte();
Expand Down

0 comments on commit df9a906

Please sign in to comment.