Skip to content

Commit

Permalink
Added a new helper method - a temporary fix
Browse files Browse the repository at this point in the history
(cherry picked from commit d83e579)
  • Loading branch information
penev92 committed Sep 27, 2023
1 parent 24623ea commit 386f691
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenRA.Game/Exts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ public static LineSplitEnumerator SplitLines(this string str, char separator)
{
return new LineSplitEnumerator(str.AsSpan(), separator);
}

public static bool TryParseInt32Invariant(string s, out int i)
{
return int.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i);
}
}

public ref struct LineSplitEnumerator
Expand Down

0 comments on commit 386f691

Please sign in to comment.