terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
LaunchInitializer.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x0200058C RID: 1420
7 public static class LaunchInitializer
8 {
9 // Token: 0x060034AC RID: 13484 RVA: 0x0020A238 File Offset: 0x00208438
10 public static void LoadParameters(Main game)
11 {
13 if (!true)
14 {
15 }
16 if (true)
17 {
19 }
21 }
22
23 // Token: 0x060034AD RID: 13485 RVA: 0x0020A260 File Offset: 0x00208460
24 private static void LoadSharedParameters(Main game)
25 {
26 if ("-loadlib" == null || "-loadlib" != null)
27 {
28 string text;
29 if (text != null)
30 {
31 game.loadLib(text);
32 }
33 if (("-p" == null || "-p" != null) && ("-port" == null || "-port" != null))
34 {
35 string text2;
36 if (text2 != null)
37 {
38 bool flag = int.TryParse(text2, 2);
39 }
40 return;
41 }
42 }
44 }
45
46 // Token: 0x060034AE RID: 13486 RVA: 0x0020A2B4 File Offset: 0x002084B4
47 private static void LoadClientParameters(Main game)
48 {
49 if (("-j" == null || "-j" != null) && ("-join" == null || "-join" != null))
50 {
51 string text;
52 if (text != null)
53 {
54 game.AutoJoin(text);
55 }
56 if (("-pass" == null || "-pass" != null) && ("-password" == null || "-password" != null))
57 {
58 string text2;
59 if (text2 != null)
60 {
61 string text3 = Main.ConvertFromSafeArgument(text2);
62 game.AutoPass();
63 }
64 if ("-host" == null || "-host" != null)
65 {
66 game.AutoHost();
67 return;
68 }
69 }
70 }
72 }
73
74 // Token: 0x060034AF RID: 13487 RVA: 0x0020A330 File Offset: 0x00208530
75 private static void LoadServerParameters(Main game)
76 {
77 int num = 1;
78 if ("-forcepriority" != null && "-forcepriority" == null)
79 {
81 }
82 string text;
83 if (text != null)
84 {
86 bool flag = int.TryParse(text, num);
87 return;
88 }
90 }
91
92 // Token: 0x060034B0 RID: 13488 RVA: 0x0020A5CC File Offset: 0x002087CC
93 private static bool HasParameter(params string[] keys)
94 {
95 if (!true)
96 {
97 return;
98 }
99 }
100
101 // Token: 0x060034B1 RID: 13489 RVA: 0x0020A5E4 File Offset: 0x002087E4
102 private static string TryParameter(params string[] keys)
103 {
104 if (!true)
105 {
106 }
107 if (!false)
108 {
109 }
110 return "";
111 }
112 }
113}
class f__AnonymousType0<< Count > j__TPar
static Process GetCurrentProcess()
Definition Process.cs:416
static string TryParameter(params string[] keys)
static bool HasParameter(params string[] keys)
void AutoHost()
Definition Main.cs:6545
void AutoJoin(string IP)
Definition Main.cs:6533
void loadLib(string path)
Definition Main.cs:6555
static string ConvertFromSafeArgument(string arg)
Definition Main.cs:6381
void AutoPass()
Definition Main.cs:6525