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
ConfigHandler.cs
Go to the documentation of this file.
1using System;
4using Mono.Xml;
5
7{
8 // Token: 0x02000344 RID: 836
9 internal class ConfigHandler : SmallXmlParser.IContentHandler
10 {
11 // Token: 0x06001BFA RID: 7162 RVA: 0x0003C6E8 File Offset: 0x0003A8E8
13 {
14 }
15
16 // Token: 0x06001BFB RID: 7163 RVA: 0x0003C708 File Offset: 0x0003A908
17 private void ValidatePath(string element, params string[] paths)
18 {
19 bool flag = this.CheckPath(element);
20 string text = "Element " + element + " not allowed in this context";
21 }
22
23 // Token: 0x06001BFC RID: 7164 RVA: 0x0003C730 File Offset: 0x0003A930
24 private bool CheckPath(string path)
25 {
26 if (!true)
27 {
28 }
30 string text = this.currentXmlPath;
31 return path == text;
32 }
33
34 // Token: 0x06001BFD RID: 7165 RVA: 0x0003C758 File Offset: 0x0003A958
35 public void OnStartParsing(SmallXmlParser parser)
36 {
37 }
38
39 // Token: 0x06001BFE RID: 7166 RVA: 0x0003C768 File Offset: 0x0003A968
40 public void OnProcessingInstruction(string name, string text)
41 {
42 }
43
44 // Token: 0x06001BFF RID: 7167 RVA: 0x0003C778 File Offset: 0x0003A978
45 public void OnIgnorableWhitespace(string s)
46 {
47 }
48
49 // Token: 0x06001C00 RID: 7168 RVA: 0x0003C788 File Offset: 0x0003A988
50 public void OnStartElement(string name, SmallXmlParser.IAttrList attrs)
51 {
52 bool flag = this.currentXmlPath.StartsWith("/configuration/system.runtime.remoting");
53 this.ParseElement(name, attrs);
54 string text = this.currentXmlPath + "/" + name;
56 }
57
58 // Token: 0x06001C01 RID: 7169 RVA: 0x0003C7CC File Offset: 0x0003A9CC
59 public void ParseElement(string name, SmallXmlParser.IAttrList attrs)
60 {
61 if (this.currentProviderData != null)
62 {
63 this.ReadCustomProviderData(name, attrs);
64 return;
65 }
66 uint num = <PrivateImplementationDetails>.ComputeStringHash(name);
67 bool flag = name == "channel";
68 if ("channels" == null || "channels" != null)
69 {
70 int num2 = this.currentXmlPath.IndexOf("application");
71 return;
72 }
74 }
75
76 // Token: 0x06001C02 RID: 7170 RVA: 0x0003CB94 File Offset: 0x0003AD94
77 public void OnEndElement(string name)
78 {
79 if (this.currentProviderData == null || this.currentProviderData == null)
80 {
81 }
82 string text = this.currentXmlPath;
83 int stringLength = name._stringLength;
84 int stringLength2 = text._stringLength;
85 string text2;
86 this.currentXmlPath = text2;
87 }
88
89 // Token: 0x06001C03 RID: 7171 RVA: 0x0003CBD0 File Offset: 0x0003ADD0
91 {
93 if (stack != null)
94 {
95 }
96 }
97
98 // Token: 0x06001C04 RID: 7172 RVA: 0x0003CC0C File Offset: 0x0003AE0C
100 {
101 }
102
103 // Token: 0x06001C05 RID: 7173 RVA: 0x0003CC2C File Offset: 0x0003AE2C
104 private TimeSpan ParseTime(string s)
105 {
106 bool flag = s == "";
107 if (s != null)
108 {
109 int num;
110 string text = s.Substring(num);
111 long num2 = 0L;
112 double num3 = double.Parse(s.Substring((int)num2, num));
114 bool flag2 = "S" == "H";
115 if ("H" == null)
116 {
117 }
119 return "H";
120 }
121 return "MS";
122 }
123
124 // Token: 0x06001C06 RID: 7174 RVA: 0x0003CD24 File Offset: 0x0003AF24
126 {
127 }
128
129 // Token: 0x06001C07 RID: 7175 RVA: 0x0003CD3C File Offset: 0x0003AF3C
131 {
132 /*
133An exception occurred when decompiling this method (06001C07)
134
135ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.Remoting.ProviderData System.Runtime.Remoting.ConfigHandler::ReadProvider(System.String,Mono.Xml.SmallXmlParser/IAttrList,System.Boolean)
136
137 ---> System.Exception: Basic block has to end with unconditional control flow.
138{
139 Block_0:
140 stloc:bool(var_0_0B, call:bool(string::op_Equality, ldloc:string(name), ldstr:string("provider")))
141}
142
143 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
144 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
145 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
146 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
147 --- End of inner exception stack trace ---
148 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
149 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
150*/;
151 }
152
153 // Token: 0x06001C08 RID: 7176 RVA: 0x0003CD58 File Offset: 0x0003AF58
155 {
156 string text;
157 do
158 {
159 text = this.currentClientUrl;
160 }
161 while (text == null);
162 bool flag = text == "";
164 string text2 = this.currentClientUrl;
165 }
166
167 // Token: 0x06001C09 RID: 7177 RVA: 0x0003CD8C File Offset: 0x0003AF8C
169 {
171 }
172
173 // Token: 0x06001C0A RID: 7178 RVA: 0x0003CDA0 File Offset: 0x0003AFA0
175 {
177 }
178
179 // Token: 0x06001C0B RID: 7179 RVA: 0x0003CDB4 File Offset: 0x0003AFB4
181 {
182 string text;
183 bool flag = text == "SingleCall";
184 }
185
186 // Token: 0x06001C0C RID: 7180 RVA: 0x0003CDD8 File Offset: 0x0003AFD8
188 {
189 string[] array;
190 string text = array.Trim().Trim();
191 }
192
193 // Token: 0x06001C0D RID: 7181 RVA: 0x0003CDF4 File Offset: 0x0003AFF4
195 {
196 }
197
198 // Token: 0x06001C0E RID: 7182 RVA: 0x0003CE18 File Offset: 0x0003B018
199 private string GetNotNull(SmallXmlParser.IAttrList attrs, string name)
200 {
201 /*
202An exception occurred when decompiling this method (06001C0E)
203
204ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Runtime.Remoting.ConfigHandler::GetNotNull(Mono.Xml.SmallXmlParser/IAttrList,System.String)
205
206 ---> System.Exception: Basic block has to end with unconditional control flow.
207{
208 IL_0000:
209 brtrue(IL_0000, logicnot:bool(ldloc:IAttrList[exp:bool](attrs)))
210}
211
212 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
213 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
214 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
215 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
216 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
217 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
218 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
219 --- End of inner exception stack trace ---
220 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
221 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
222*/;
223 }
224
225 // Token: 0x06001C0F RID: 7183 RVA: 0x0003CE28 File Offset: 0x0003B028
226 private string ExtractAssembly(string type)
227 {
228 string text2;
229 string text = text2.Trim();
230 string text4;
231 string text3 = text4.Trim();
232 return text;
233 }
234
235 // Token: 0x06001C10 RID: 7184 RVA: 0x0003CE50 File Offset: 0x0003B050
236 public void OnChars(string ch)
237 {
238 }
239
240 // Token: 0x06001C11 RID: 7185 RVA: 0x0003CE60 File Offset: 0x0003B060
241 public void OnEndParsing(SmallXmlParser parser)
242 {
244 bool flag = this.onlyDelayedChannels;
245 if (!true)
246 {
247 }
248 if (this.appName != null)
249 {
250 if (!true)
251 {
252 }
253 if (!true)
254 {
255 }
256 }
257 bool flag2 = this.onlyDelayedChannels;
258 if (flag2)
259 {
260 return;
261 }
263 if (!flag2)
264 {
265 }
267 }
268
269 // Token: 0x04000E3F RID: 3647
271
272 // Token: 0x04000E40 RID: 3648
274
275 // Token: 0x04000E41 RID: 3649
277
278 // Token: 0x04000E42 RID: 3650
280
281 // Token: 0x04000E43 RID: 3651
282 private string currentClientUrl;
283
284 // Token: 0x04000E44 RID: 3652
285 private string appName;
286
287 // Token: 0x04000E45 RID: 3653
288 private string currentXmlPath = "";
289
290 // Token: 0x04000E46 RID: 3654
292 }
293}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
void ReadLifetine(SmallXmlParser.IAttrList attrs)
void OnStartElement(string name, SmallXmlParser.IAttrList attrs)
void ParseElement(string name, SmallXmlParser.IAttrList attrs)
string GetNotNull(SmallXmlParser.IAttrList attrs, string name)
void ReadServiceWellKnown(SmallXmlParser.IAttrList attrs)
void ReadServiceActivated(SmallXmlParser.IAttrList attrs)
void ReadClientActivated(SmallXmlParser.IAttrList attrs)
void ReadChannel(SmallXmlParser.IAttrList attrs, bool isTemplate)
void OnProcessingInstruction(string name, string text)
ConfigHandler(bool onlyDelayedChannels)
void ReadClientWellKnown(SmallXmlParser.IAttrList attrs)
void OnEndParsing(SmallXmlParser parser)
void ReadPreload(SmallXmlParser.IAttrList attrs)
void ReadCustomProviderData(string name, SmallXmlParser.IAttrList attrs)
ProviderData ReadProvider(string name, SmallXmlParser.IAttrList attrs, bool isTemplate)
void ValidatePath(string element, params string[] paths)
void ReadInteropXml(SmallXmlParser.IAttrList attrs, bool isElement)
void OnStartParsing(SmallXmlParser parser)
static TimeSpan FromDays(double value)
Definition TimeSpan.cs:172
static TimeSpan FromHours(double value)
Definition TimeSpan.cs:221
static TimeSpan Parse(string s)
Definition TimeSpan.cs:312