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
FileBasedResourceGroveler.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Resources
7{
8 // Token: 0x020004B0 RID: 1200
10 {
11 // Token: 0x060022EF RID: 8943 RVA: 0x0004E73C File Offset: 0x0004C93C
16
17 // Token: 0x060022F0 RID: 8944 RVA: 0x0004E758 File Offset: 0x0004C958
19 {
20 ResourceManager rm = this._mediator._rm;
21 string text;
22 if (text != null)
23 {
24 return this.CreateResourceSet(text);
25 }
26 bool hasInvariantCultureName = culture.HasInvariantCultureName;
27 string resourceString = Environment.GetResourceString("Could not find any resources appropriate for the specified culture (or the neutral culture) on disk.");
28 if (resourceString == null || resourceString != null)
29 {
30 string newLine = Environment.NewLine;
31 if ((newLine == null || newLine != null) && ("baseName: " == null || "baseName: " != null))
32 {
33 string baseNameField = this._mediator._rm.BaseNameField;
34 if ((baseNameField == null || baseNameField != null) && (" locationInfo: " == null || " locationInfo: " != null))
35 {
36 ResourceManager rm2 = this._mediator._rm;
37 Type locationInfo = rm2._locationInfo;
38 if (rm2 == null)
39 {
40 }
41 return "<null>";
42 }
43 }
44 }
46 }
47
48 // Token: 0x060022F1 RID: 8945 RVA: 0x0004E838 File Offset: 0x0004CA38
49 private string FindResourceFile(CultureInfo culture, string fileName)
50 {
51 /*
52An exception occurred when decompiling this method (060022F1)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Resources.FileBasedResourceGroveler::FindResourceFile(System.Globalization.CultureInfo,System.String)
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 IL_0025:
59 stloc:bool(var_3_2B, call:bool(File::Exists, ldloc:string(fileName)))
60}
61
62 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
63 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
64 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
65 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
66 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
67 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
68 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
69 --- End of inner exception stack trace ---
70 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
71 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
72*/;
73 }
74
75 // Token: 0x060022F2 RID: 8946 RVA: 0x0004E870 File Offset: 0x0004CA70
77 {
79 if (file == null || file != null)
80 {
82 object obj;
83 if (obj != null)
84 {
85 }
86 throw new InvalidCastException();
87 }
89 }
90
91 // Token: 0x04001321 RID: 4897
93 }
94}
class f__AnonymousType0<< Count > j__TPar
static string NewLine
static string GetResourceString(string key)
string FindResourceFile(CultureInfo culture, string fileName)
ResourceManager.ResourceManagerMediator _mediator
FileBasedResourceGroveler(ResourceManager.ResourceManagerMediator mediator)
ResourceSet GrovelForResourceSet(CultureInfo culture, Dictionary< string, ResourceSet > localResourceSets, bool tryParents, bool createIfNotExists, StackCrawlMark stackMark)