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

◆ ConvertMonoArgsToDotNet()

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

Definition at line 420 of file Utils.cs.

421 {
423 string text = "";
424 for (int i = 0; i < brokenArgs.Length; i++)
425 {
426 if (brokenArgs[i].StartsWith("-") || brokenArgs[i].StartsWith("+"))
427 {
428 if (text != "")
429 {
430 arrayList.Add(text);
431 text = "";
432 }
433 else
434 {
435 arrayList.Add("");
436 }
437 arrayList.Add(brokenArgs[i]);
438 }
439 else
440 {
441 if (text != "")
442 {
443 text += " ";
444 }
445 text += brokenArgs[i];
446 }
447 }
448 arrayList.Add(text);
449 string[] array = new string[arrayList.Count];
450 arrayList.CopyTo(array);
451 return array;
452 }

Referenced by Terraria.Program.ProcessLaunchArgs().

+ Here is the caller graph for this function: