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
ScreenshotSetup.cs
Go to the documentation of this file.
1using System;
2using Controller;
3using UnityEngine;
4
5// Token: 0x02000306 RID: 774
7public class ScreenshotSetup
8{
9 // Token: 0x170001AA RID: 426
10 // (get) Token: 0x060011FB RID: 4603 RVA: 0x00057ABC File Offset: 0x00055CBC
12 {
13 get
14 {
16 if (!true)
17 {
18 }
20 int height = this.Height;
22 int width = this.Width;
24 return renderTexture3;
25 }
26 }
27
28 // Token: 0x170001AB RID: 427
29 // (get) Token: 0x060011FC RID: 4604 RVA: 0x00057B20 File Offset: 0x00055D20
31 {
32 get
33 {
34 Texture2D tex = this._tex;
35 if (!true)
36 {
37 }
38 Texture2D tex2 = this._tex;
39 int height = this.Height;
40 Texture2D tex3 = this._tex;
41 int width = this.Width;
42 Texture2D tex4 = this._tex;
43 return tex3;
44 }
45 }
46
47 // Token: 0x170001AC RID: 428
48 // (get) Token: 0x060011FD RID: 4605 RVA: 0x00057B88 File Offset: 0x00055D88
50 {
51 get
52 {
53 /*
54An exception occurred when decompiling this method (060011FD)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling DeviceVPPICalculator/EditorMobileEmuEntry ScreenshotSetup::get_EmulationEntry()
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 IL_0037:
61 stloc:string(var_9_3D, ldfld:string(ScreenshotSetup::Id, ldloc:ScreenshotSetup(this)))
62 stloc:string(var_10_4B, call:string(string::Concat, ldstr:string("Screenshot_"), ldloc:string(var_9_3D)))
63 stloc:int32(var_11_53, ldfld:int32(ScreenshotSetup::Width, ldloc:ScreenshotSetup(this)))
64 stloc:int32(var_12_5B, ldfld:int32(ScreenshotSetup::DPI, ldloc:ScreenshotSetup(this)))
65 stloc:string(var_13_63, ldfld:string(ScreenshotSetup::Id, ldloc:ScreenshotSetup(this)))
66 stloc:int32(var_15_6B, ldfld:int32(ScreenshotSetup::Width, ldloc:ScreenshotSetup(this)))
67 stloc:int32(var_16_73, ldfld:int32(ScreenshotSetup::DPI, ldloc:ScreenshotSetup(this)))
68 stloc:int32(var_17_7B, ldfld:int32(ScreenshotSetup::DPI, ldloc:ScreenshotSetup(this)))
69}
70
71 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
72 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
73 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
74 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
75 --- End of inner exception stack trace ---
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 92
77 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
78*/;
79 }
80 }
81
82 // Token: 0x060011FE RID: 4606 RVA: 0x00057C18 File Offset: 0x00055E18
84 {
85 }
86
87 // Token: 0x04002179 RID: 8569
89
90 // Token: 0x0400217A RID: 8570
91 private Texture2D _tex;
92
93 // Token: 0x0400217B RID: 8571
95
96 // Token: 0x0400217C RID: 8572
97 public string Id;
98
99 // Token: 0x0400217D RID: 8573
101
102 // Token: 0x0400217E RID: 8574
104
105 // Token: 0x0400217F RID: 8575
106 public int Width;
107
108 // Token: 0x04002180 RID: 8576
109 public int Height;
110
111 // Token: 0x04002181 RID: 8577
112 public int DPI;
113
114 // Token: 0x04002182 RID: 8578
116
117 // Token: 0x04002183 RID: 8579
118 public string OutputPath;
119
120 // Token: 0x04002184 RID: 8580
121 public string OutputFileStart;
122
123 // Token: 0x02000307 RID: 775
124 public enum UIStyle
125 {
126 // Token: 0x04002186 RID: 8582
128 // Token: 0x04002187 RID: 8583
130 // Token: 0x04002188 RID: 8584
131 None
132 }
133}
class f__AnonymousType0<< Count > j__TPar
ControllerDevice.ControlScheme ControlScheme
Texture2D SaveTexture
ScreenshotSetup.UIStyle Style
RenderTexture _renderTexture
DeviceVPPICalculator.EditorMobileEmuEntry EmulationEntry
DeviceVPPICalculator.EditorMobileEmuEntry _emulationEntry