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
LanguageManager.cs
Go to the documentation of this file.
1using System;
13using UnityEngine;
14
16{
17 // Token: 0x02000557 RID: 1367
18 public class LanguageManager
19 {
20 // Token: 0x14000039 RID: 57
21 // (add) Token: 0x06003318 RID: 13080 RVA: 0x001FE660 File Offset: 0x001FC860
22 // (remove) Token: 0x06003319 RID: 13081 RVA: 0x001FE684 File Offset: 0x001FC884
24 {
26 add
27 {
28 if (Delegate.Combine(this.OnLanguageChanging, value) != null)
29 {
30 }
31 }
33 remove
34 {
35 if (Delegate.Remove(this.OnLanguageChanging, value) != null)
36 {
37 }
38 }
39 }
40
41 // Token: 0x1400003A RID: 58
42 // (add) Token: 0x0600331A RID: 13082 RVA: 0x001FE6A8 File Offset: 0x001FC8A8
43 // (remove) Token: 0x0600331B RID: 13083 RVA: 0x001FE6CC File Offset: 0x001FC8CC
45 {
47 add
48 {
49 if (Delegate.Combine(this.OnLanguageChanged, value) != null)
50 {
51 }
52 }
54 remove
55 {
56 if (Delegate.Remove(this.OnLanguageChanged, value) != null)
57 {
58 }
59 }
60 }
61
62 // Token: 0x1700066A RID: 1642
63 // (get) Token: 0x0600331C RID: 13084 RVA: 0x001FE6F0 File Offset: 0x001FC8F0
64 // (set) Token: 0x0600331D RID: 13085 RVA: 0x001FE704 File Offset: 0x001FC904
66 {
68 get
69 {
70 return this.<ActiveCulture>k__BackingField;
71 }
73 private set
74 {
76 }
77 }
78
79 // Token: 0x0600331E RID: 13086 RVA: 0x001FE718 File Offset: 0x001FC918
81 {
82 if (!true)
83 {
84 }
85 if (!true)
86 {
87 }
89 base..ctor();
91 if (!true)
92 {
93 }
94 }
95
96 // Token: 0x0600331F RID: 13087 RVA: 0x001FE744 File Offset: 0x001FC944
97 public int GetCategorySize(string name)
98 {
99 /*
100An exception occurred when decompiling this method (0600331F)
101
102ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.Localization.LanguageManager::GetCategorySize(System.String)
103
104 ---> System.Exception: Basic block has to end with unconditional control flow.
105{
106 Block_0:
107 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [mscorlib]System.Collections.Generic.List`1<string>>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [mscorlib]System.Collections.Generic.List`1<string>>(LanguageManager::_categoryGroupedKeys, ldloc:LanguageManager(this)))
108 stloc:valuetype [mscorlib]System.Collections.Generic.Dictionary`2/Entry[](var_1_12, ldfld:valuetype [mscorlib]System.Collections.Generic.Dictionary`2/Entry<!0, !1>[][exp:valuetype [mscorlib]System.Collections.Generic.Dictionary`2/Entry[]](Dictionary`2::_entries, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [mscorlib]System.Collections.Generic.List`1<string>>[exp:Dictionary`2](LanguageManager::_categoryGroupedKeys, ldloc:LanguageManager(this))))
109}
110
111 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
112 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
113 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
114 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
115 --- End of inner exception stack trace ---
116 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
117 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
118*/;
119 }
120
121 // Token: 0x06003320 RID: 13088 RVA: 0x001FE768 File Offset: 0x001FC968
122 public void SetLanguage(int legacyId)
123 {
124 if (!true)
125 {
126 }
128 this.SetLanguage(gameCulture);
129 }
130
131 // Token: 0x06003321 RID: 13089 RVA: 0x001FE788 File Offset: 0x001FC988
132 public void SetLanguage(string cultureName)
133 {
134 if (!true)
135 {
136 }
138 this.SetLanguage(gameCulture);
139 }
140
141 // Token: 0x06003322 RID: 13090 RVA: 0x001FE7A8 File Offset: 0x001FC9A8
142 public int EstimateWordCount()
143 {
145 string text2;
146 string text = text2.Replace(",", "").Replace(".", "").Replace("\"", "")
147 .Trim();
148 bool flag = string.IsNullOrWhiteSpace(text2);
149 int stringLength = text2._stringLength;
150 throw new OutOfMemoryException();
151 }
152
153 // Token: 0x06003323 RID: 13091 RVA: 0x001FE818 File Offset: 0x001FCA18
158
159 // Token: 0x06003324 RID: 13092 RVA: 0x000021DB File Offset: 0x000003DB
161 {
162 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
163 }
164
165 // Token: 0x06003325 RID: 13093 RVA: 0x001FE840 File Offset: 0x001FCA40
166 public void DelayedInit()
167 {
169 this.intialLoadDone = true;
170 this.SetLanguage(gameCulture);
171 }
172
173 // Token: 0x06003326 RID: 13094 RVA: 0x001FE864 File Offset: 0x001FCA64
175 {
176 if (this.intialLoadDone)
177 {
182 this.LoadLanguage(fallbackCulture2, true);
183 this.LoadLanguage(culture, true);
184 this.<ActiveCulture>k__BackingField = culture;
192 if (onLanguageChanged != null)
193 {
194 IntPtr invoke_impl = onLanguageChanged.invoke_impl;
195 IntPtr method_code = onLanguageChanged.method_code;
196 IntPtr method = onLanguageChanged.method;
197 }
198 if (onLanguageChanged == null)
199 {
200 return;
201 }
202 }
203 else
204 {
206 }
207 }
208
209 // Token: 0x06003327 RID: 13095 RVA: 0x001FE918 File Offset: 0x001FCB18
211 {
212 this.LoadFilesForCulture(culture);
214 if (onLanguageChanging != null)
215 {
216 IntPtr invoke_impl = onLanguageChanging.invoke_impl;
217 IntPtr method_code = onLanguageChanging.method_code;
218 IntPtr method = onLanguageChanging.method;
219 }
222 }
223
224 // Token: 0x06003328 RID: 13096 RVA: 0x001FE95C File Offset: 0x001FCB5C
226 {
228 string text;
230 string text2;
231 bool flag = text2.EndsWith(".XBO");
233 }
234
235 // Token: 0x06003329 RID: 13097 RVA: 0x001FEA1C File Offset: 0x001FCC1C
240
241 // Token: 0x0600332A RID: 13098 RVA: 0x001FEA48 File Offset: 0x001FCC48
243 {
244 if (!true)
245 {
246 }
247 if (("LoadingTips_Default.98" == null || "LoadingTips_Default.98" != null) && ("LoadingTips_Default.103" == null || "LoadingTips_Default.103" != null) && ("LoadingTips_GamePad.0" == null || "LoadingTips_GamePad.0" != null) && ("LoadingTips_GamePad.1" == null || "LoadingTips_GamePad.1" != null) && ("LoadingTips_GamePad.3" == null || "LoadingTips_GamePad.3" != null) && ("LoadingTips_GamePad.10" == null || "LoadingTips_GamePad.10" != null) && ("LoadingTips_GamePad.11" == null || "LoadingTips_GamePad.11" != null) && ("LoadingTips_GamePad.12" == null || "LoadingTips_GamePad.12" != null) && ("LoadingTips_Keyboard.0" == null || "LoadingTips_Keyboard.0" != null) && ("LoadingTips_Keyboard.2" == null || "LoadingTips_Keyboard.2" != null) && ("LoadingTips_Keyboard.3" == null || "LoadingTips_Keyboard.3" != null) && ("LoadingTips_Keyboard.7" == null || "LoadingTips_Keyboard.7" != null))
248 {
251 string text2;
252 string text = text2 + "LoadingTips_Keyboard.7";
254 return;
255 }
256 throw new ArrayTypeMismatchException();
257 }
258
259 // Token: 0x0600332B RID: 13099 RVA: 0x001FEBC0 File Offset: 0x001FCDC0
260 [Conditional("ENABLE_DEBUG")]
261 [Conditional("UNITY_EDITOR")]
263 {
264 }
265
266 // Token: 0x0600332C RID: 13100 RVA: 0x001FEBD0 File Offset: 0x001FCDD0
268 {
270 long num = 0L;
272 if (num == 0L || num != 0L)
273 {
274 }
275 throw new ArrayTypeMismatchException();
276 }
277
278 // Token: 0x0600332D RID: 13101 RVA: 0x001FEC1C File Offset: 0x001FCE1C
280 {
282 IntPtr method_code = filter.method_code;
283 IntPtr invoke_impl = filter.invoke_impl;
284 IntPtr method = filter.method;
285 throw new OutOfMemoryException();
286 }
287
288 // Token: 0x0600332E RID: 13102 RVA: 0x001FEC54 File Offset: 0x001FCE54
289 public LocalizedText[] FindAll(string categoryName)
290 {
293 Dictionary.Entry[] entries = categoryGroupedKeys2._entries;
294 string text;
295 return this.GetText(text);
296 }
297
298 // Token: 0x0600332F RID: 13103 RVA: 0x001FEC88 File Offset: 0x001FCE88
300 {
302 IntPtr method_code = filter.method_code;
303 IntPtr invoke_impl = filter.invoke_impl;
304 IntPtr method = filter.method;
305 if (random != null || invoke_impl == 0)
306 {
307 }
311 IntPtr method2 = filter.method;
312 if (invoke_impl2 == 0)
313 {
314 }
315 throw new OutOfMemoryException();
316 }
317
318 // Token: 0x06003330 RID: 13104 RVA: 0x001FECFC File Offset: 0x001FCEFC
319 public LocalizedText RandomFromCategory(string categoryName, [Optional] UnifiedRandom random)
320 {
323 if (random == null)
324 {
325 }
326 Dictionary.Entry[] entries = categoryGroupedKeys2._entries;
327 string text;
328 return this.GetText(text);
329 }
330
331 // Token: 0x06003331 RID: 13105 RVA: 0x001FED44 File Offset: 0x001FCF44
341
342 // Token: 0x06003332 RID: 13106 RVA: 0x001FEDA8 File Offset: 0x001FCFA8
343 public LocalizedText IndexedFromCategory(string categoryName, int index)
344 {
347 string text;
348 return this.GetText(text);
349 }
350
351 // Token: 0x06003333 RID: 13107 RVA: 0x001FEDE8 File Offset: 0x001FCFE8
352 public bool Exists(string key)
353 {
354 /*
355An exception occurred when decompiling this method (06003333)
356
357ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Localization.LanguageManager::Exists(System.String)
358
359 ---> System.Exception: Basic block has to end with unconditional control flow.
360{
361 Block_0:
362 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(LanguageManager::_localizedTexts, ldloc:LanguageManager(this)))
363}
364
365 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
366 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
367 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
368 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
369 --- End of inner exception stack trace ---
370 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
371 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
372*/;
373 }
374
375 // Token: 0x06003334 RID: 13108 RVA: 0x001FEDFC File Offset: 0x001FCFFC
376 public LocalizedText GetText(string key)
377 {
378 /*
379An exception occurred when decompiling this method (06003334)
380
381ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Localization.LocalizedText Terraria.Localization.LanguageManager::GetText(System.String)
382
383 ---> System.Exception: Basic block has to end with unconditional control flow.
384{
385 Block_0:
386 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(LanguageManager::_localizedTexts, ldloc:LanguageManager(this)))
387 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(LanguageManager::_localizedTexts, ldloc:LanguageManager(this)))
388 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(var_2_14, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(LanguageManager::_localizedTexts, ldloc:LanguageManager(this)))
389}
390
391 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
392 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
393 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
394 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
395 --- End of inner exception stack trace ---
396 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
397 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
398*/;
399 }
400
401 // Token: 0x06003335 RID: 13109 RVA: 0x001FEE20 File Offset: 0x001FD020
402 public string GetTextValue(string key)
403 {
404 /*
405An exception occurred when decompiling this method (06003335)
406
407ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Terraria.Localization.LanguageManager::GetTextValue(System.String)
408
409 ---> System.Exception: Basic block has to end with unconditional control flow.
410{
411 Block_0:
412 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>(LanguageManager::_localizedTexts, ldloc:LanguageManager(this)))
413 stloc:valuetype [mscorlib]System.Collections.Generic.Dictionary`2/Entry[](var_1_12, ldfld:valuetype [mscorlib]System.Collections.Generic.Dictionary`2/Entry<!0, !1>[][exp:valuetype [mscorlib]System.Collections.Generic.Dictionary`2/Entry[]](Dictionary`2::_entries, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Terraria.Localization.LocalizedText>[exp:Dictionary`2](LanguageManager::_localizedTexts, ldloc:LanguageManager(this))))
414}
415
416 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
417 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
418 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
419 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
420 --- End of inner exception stack trace ---
421 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
422 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
423*/;
424 }
425
426 // Token: 0x06003336 RID: 13110 RVA: 0x001FEE40 File Offset: 0x001FD040
427 public string GetTextValue(string key, object arg0)
428 {
430 Dictionary.Entry[] entries = this._localizedTexts._entries;
431 string text;
432 return text;
433 }
434
435 // Token: 0x06003337 RID: 13111 RVA: 0x001FEE64 File Offset: 0x001FD064
436 public string GetTextValue(string key, object arg0, object arg1)
437 {
439 Dictionary.Entry[] entries = this._localizedTexts._entries;
440 string text;
441 return text;
442 }
443
444 // Token: 0x06003338 RID: 13112 RVA: 0x001FEE88 File Offset: 0x001FD088
445 public string GetTextValue(string key, object arg0, object arg1, object arg2)
446 {
448 Dictionary.Entry[] entries = this._localizedTexts._entries;
449 string text;
450 return text;
451 }
452
453 // Token: 0x06003339 RID: 13113 RVA: 0x001FEEAC File Offset: 0x001FD0AC
454 public string GetTextValue(string key, params object[] args)
455 {
457 Dictionary.Entry[] entries = this._localizedTexts._entries;
458 string text;
459 return text;
460 }
461
462 // Token: 0x0600333A RID: 13114 RVA: 0x001FEED0 File Offset: 0x001FD0D0
467
468 // Token: 0x0600333B RID: 13115 RVA: 0x001FEEE4 File Offset: 0x001FD0E4
469 // Note: this type is marked as 'beforefieldinit'.
471 {
472 }
473
474 // Token: 0x0600333C RID: 13116 RVA: 0x001FEEF4 File Offset: 0x001FD0F4
477 {
478 string text;
479 return text;
480 }
481
482 // Token: 0x04003C1A RID: 15386
484
485 // Token: 0x04003C1B RID: 15387
488
489 // Token: 0x04003C1C RID: 15388
492
493 // Token: 0x04003C1D RID: 15389
495 private GameCulture <ActiveCulture>k__BackingField;
496
497 // Token: 0x04003C1E RID: 15390
499
500 // Token: 0x04003C1F RID: 15391
502
503 // Token: 0x04003C20 RID: 15392
505
506 // Token: 0x04003C21 RID: 15393
507 public bool intialLoadDone;
508
509 // Token: 0x04003C22 RID: 15394
511
512 // Token: 0x02000558 RID: 1368
514 private sealed class <>c__DisplayClass21_0
515 {
516 // Token: 0x0600333D RID: 13117 RVA: 0x001FEF04 File Offset: 0x001FD104
518 {
519 }
520
521 // Token: 0x0600333E RID: 13118 RVA: 0x001FEF18 File Offset: 0x001FD118
522 internal bool <GetLanguageFilesForCulture>b__0(string element)
523 {
525 string text;
526 bool flag = element.StartsWith(text);
527 return element.EndsWith(".json");
528 }
529
530 // Token: 0x04003C23 RID: 15395
531 public GameCulture culture;
532 }
533 }
534}
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
Dictionary< TKey, TValue >.Entry[] _entries
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
static Thread CurrentThread
Definition Thread.cs:381
static bool CanSubstituteBindings(string bindingKey)
Definition Lang.cs:72
static GameCulture FromLegacyId(int id)
static GameCulture FromName(string name)
LanguageChangeCallback OnLanguageChanged
LocalizedText[] FindAll(string categoryName)
string[] GetLanguageFilesForCulture(GameCulture culture)
string GetTextValue(string key, object arg0, object arg1, object arg2)
string GetTextValue(string key, object arg0, object arg1)
LanguageChangeCallback OnLanguageChanging
LocalizedText RandomFromCategory(string categoryName, [Optional] UnifiedRandom random)
readonly Dictionary< string, List< string > > _categoryGroupedKeys
void LoadLanguageFromFileText(string fileText)
LocalizedText RandomFromCategories(string[] categoryNames, int keyIndexToSkip, [Optional] UnifiedRandom random)
string< ProcessCopyCommandsInTexts > b__27_0(Match match)
LocalizedText SelectRandom(LanguageSearchFilter filter, [Optional] UnifiedRandom random)
readonly Dictionary< string, LocalizedText > _localizedTexts
string GetTextValue(string key, object arg0)
string GetTextValue(string key, params object[] args)
void ValidateAllCharactersContainedInFont(SpriteFont font)
void LoadFilesForCulture(GameCulture culture)
LocalizedText IndexedFromCategory(string categoryName, int index)
void LoadLanguage(GameCulture culture, bool processCopyCommands=true)
LocalizedText[] FindAll(LanguageSearchFilter filter)
LocalizedText[] FindAll(Regex regex)
void SetLanguage(GameCulture culture)
GameCulture< ActiveCulture > k__BackingField
void SetFallbackCulture(GameCulture culture)
static Object[] LoadAll(string path, Type systemTypeInstance)
Definition Resources.cs:98