From 0bbe6e58f696311d47b950910254d3d0fc5db785 Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Sun, 2 Nov 2025 02:57:04 +0000 Subject: [PATCH] Added a new helper method - a temporary fix (cherry picked from commit d83e579dfedd9f7992535b8b3096bb02d2dded4f) --- OpenRA.Game/Exts.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRA.Game/Exts.cs b/OpenRA.Game/Exts.cs index 2a9ae19272..4f9014f628 100644 --- a/OpenRA.Game/Exts.cs +++ b/OpenRA.Game/Exts.cs @@ -637,6 +637,11 @@ namespace OpenRA { 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