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.
1
using
System
;
2
using
System.Diagnostics
;
3
4
namespace
Terraria.Initializers
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
{
12
LaunchInitializer
.
LoadSharedParameters
(game);
13
if
(!
true
)
14
{
15
}
16
if
(
true
)
17
{
18
LaunchInitializer
.
LoadServerParameters
(game);
19
}
20
LaunchInitializer
.
LoadClientParameters
(game);
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
}
43
throw
new
ArrayTypeMismatchException
();
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
}
71
throw
new
ArrayTypeMismatchException
();
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
{
80
throw
new
ArrayTypeMismatchException
();
81
}
82
string
text
;
83
if
(
text
!=
null
)
84
{
85
Process
currentProcess
=
Process
.
GetCurrentProcess
();
86
bool
flag =
int
.TryParse(
text
, num);
87
return
;
88
}
89
Process
currentProcess2
=
Process
.
GetCurrentProcess
();
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Diagnostics.Process.GetCurrentProcess
static Process GetCurrentProcess()
Definition
Process.cs:416
System.Diagnostics.Process
Definition
Process.cs:19
Terraria.Initializers.LaunchInitializer.TryParameter
static string TryParameter(params string[] keys)
Definition
LaunchInitializer.cs:102
Terraria.Initializers.LaunchInitializer.LoadParameters
static void LoadParameters(Main game)
Definition
LaunchInitializer.cs:10
Terraria.Initializers.LaunchInitializer.HasParameter
static bool HasParameter(params string[] keys)
Definition
LaunchInitializer.cs:93
Terraria.Initializers.LaunchInitializer.LoadClientParameters
static void LoadClientParameters(Main game)
Definition
LaunchInitializer.cs:47
Terraria.Initializers.LaunchInitializer.LoadServerParameters
static void LoadServerParameters(Main game)
Definition
LaunchInitializer.cs:75
Terraria.Initializers.LaunchInitializer.LoadSharedParameters
static void LoadSharedParameters(Main game)
Definition
LaunchInitializer.cs:24
Terraria.Initializers.LaunchInitializer
Definition
LaunchInitializer.cs:8
Terraria.Main.AutoHost
void AutoHost()
Definition
Main.cs:6545
Terraria.Main.AutoJoin
void AutoJoin(string IP)
Definition
Main.cs:6533
Terraria.Main.loadLib
void loadLib(string path)
Definition
Main.cs:6555
Terraria.Main.ConvertFromSafeArgument
static string ConvertFromSafeArgument(string arg)
Definition
Main.cs:6381
Terraria.Main.AutoPass
void AutoPass()
Definition
Main.cs:6525
Terraria.Main
Definition
Main.cs:67
System.Diagnostics
Definition
ConditionalAttribute.cs:5
System.ExceptionArgument.text
@ text
System
Definition
__ComObject.cs:4
Terraria.Initializers
Definition
AchievementInitializer.cs:8
source
Terraria
Initializers
LaunchInitializer.cs
Generated by
1.10.0