Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ConvertMonoArgsToDotNet()

static string[] Terraria.Utils.ConvertMonoArgsToDotNet ( string[] brokenArgs)
inlinestatic

Definition at line 374 of file Utils.cs.

375 {
377 string text = "";
378 for (int i = 0; i < brokenArgs.Length; i++)
379 {
380 if (brokenArgs[i].StartsWith("-"))
381 {
382 if (text != "")
383 {
385 text = "";
386 }
387 else
388 {
389 arrayList.Add("");
390 }
392 }
393 else
394 {
395 if (text != "")
396 {
397 text += " ";
398 }
399 text += brokenArgs[i];
400 }
401 }
403 string[] array = new string[arrayList.Count];
405 return array;
406 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
void Add(TKey key, TValue value)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.array, System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Text.RegularExpressions.i, and System.text.

Referenced by Terraria.Program.LaunchGame().