Replace ConfigParser with SDK-provided MyIni

This commit is contained in:
2025-02-09 21:18:58 -05:00
parent 37511ac473
commit e82303ff00
9 changed files with 30 additions and 98 deletions

View File

@ -48,9 +48,9 @@ namespace IngameScript
public static string ExtractTag(IMyTerminalBlock block, string tag)
{
Regex r = new Regex($@"({tag}\w*?)\s");
Match m = r.Match(block.CustomName);
if (m.Success) return m.Groups[0].Captures[0].ToString();
foreach (string token in block.CustomName.Split(' ')) {
if (token.StartsWith(tag)) return token;
}
return "";
}
}