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
LegacyHairShaderData.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x0200081A RID: 2074
10 {
11 // Token: 0x060042A2 RID: 17058 RVA: 0x0024BE00 File Offset: 0x0024A000
13 {
15 }
16
17 // Token: 0x060042A3 RID: 17059 RVA: 0x0024BE14 File Offset: 0x0024A014
18 public override Color GetColor(Player player, Color lightColor)
19 {
21 do
22 {
24 IntPtr invoke_impl = colorProcessor.invoke_impl;
25 IntPtr method_code = colorProcessor.method_code;
26 IntPtr method = colorProcessor.method;
27 }
28 while (colorProcessor == null);
29 if (colorProcessor == null)
30 {
31 return;
32 }
33 }
34
35 // Token: 0x060042A4 RID: 17060 RVA: 0x0024BE48 File Offset: 0x0024A048
41
42 // Token: 0x040080EF RID: 33007
44
45 // Token: 0x0200081B RID: 2075
47 {
48 // Token: 0x060042A5 RID: 17061 RVA: 0x0024BE60 File Offset: 0x0024A060
49 public ColorProcessingMethod(object @object, IntPtr method)
50 {
52 this.m_target = @object;
54 this.method_code = this;
55 }
56
57 // Token: 0x060042A6 RID: 17062 RVA: 0x0024BEC0 File Offset: 0x0024A0C0
58 public Color Invoke(Player player, Color color, bool lighting)
59 {
60 /*
61An exception occurred when decompiling this method (060042A6)
62
63ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.GameContent.Dyes.LegacyHairShaderData/ColorProcessingMethod::Invoke(Terraria.Player,Microsoft.Xna.Framework.Graphics.Color,System.Boolean)
64
65 ---> System.Exception: Basic block has to end with unconditional control flow.
66{
67 Block_0:
68 stloc:native int(var_0_06, ldfld:native int(Delegate::method_code, ldloc:ColorProcessingMethod[exp:Delegate](this)))
69 stloc:native int(var_1_0D, ldfld:native int(Delegate::invoke_impl, ldloc:ColorProcessingMethod[exp:Delegate](this)))
70 stloc:native int(var_2_14, ldfld:native int(Delegate::method, ldloc:ColorProcessingMethod[exp:Delegate](this)))
71}
72
73 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
74 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
75 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
76 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
77 --- End of inner exception stack trace ---
78 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
79 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
80*/;
81 }
82
83 // Token: 0x060042A7 RID: 17063 RVA: 0x000021DB File Offset: 0x000003DB
84 public IAsyncResult BeginInvoke(Player player, Color color, bool lighting, AsyncCallback callback, object @object)
85 {
86 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
87 }
88
89 // Token: 0x060042A8 RID: 17064 RVA: 0x0024BEE4 File Offset: 0x0024A0E4
90 public Color EndInvoke(bool lighting, IAsyncResult result)
91 {
92 Color color;
93 return color;
94 }
95 }
96 }
97}
class f__AnonymousType0<< Count > j__TPar
IAsyncResult BeginInvoke(Player player, Color color, bool lighting, AsyncCallback callback, object @object)
override Color GetColor(Player player, Color lightColor)
LegacyHairShaderData UseLegacyMethod(LegacyHairShaderData.ColorProcessingMethod colorProcessor)
LegacyHairShaderData.ColorProcessingMethod _colorProcessor