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
DisplayMode.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x0200035F RID: 863
8 public class DisplayMode
9 {
10 // Token: 0x0600167D RID: 5757 RVA: 0x00062D48 File Offset: 0x00060F48
11 public void UpdateSize(int newWidth, int newHeight)
12 {
14 }
15
16 // Token: 0x17000292 RID: 658
17 // (get) Token: 0x0600167E RID: 5758 RVA: 0x00062D5C File Offset: 0x00060F5C
18 public float AspectRatio
19 {
20 get
21 {
22 /*
23An exception occurred when decompiling this method (0600167E)
24
25ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Graphics.DisplayMode::get_AspectRatio()
26
27 ---> System.Exception: Basic block has to end with unconditional control flow.
28{
29 Block_0:
30 stloc:int32(var_0_06, ldfld:int32(DisplayMode::height, ldloc:DisplayMode(this)))
31 stloc:int32(var_1_0D, ldfld:int32(DisplayMode::width, ldloc:DisplayMode(this)))
32}
33
34 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
35 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
36 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
37 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
38 --- End of inner exception stack trace ---
39 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
40 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
41*/;
42 }
43 }
44
45 // Token: 0x17000293 RID: 659
46 // (get) Token: 0x0600167F RID: 5759 RVA: 0x00062D78 File Offset: 0x00060F78
48 {
49 get
50 {
51 return this.format;
52 }
53 }
54
55 // Token: 0x17000294 RID: 660
56 // (get) Token: 0x06001680 RID: 5760 RVA: 0x00062D8C File Offset: 0x00060F8C
57 public int Height
58 {
59 get
60 {
61 return this.height;
62 }
63 }
64
65 // Token: 0x17000295 RID: 661
66 // (get) Token: 0x06001681 RID: 5761 RVA: 0x00062DA0 File Offset: 0x00060FA0
67 public int Width
68 {
69 get
70 {
71 return this.width;
72 }
73 }
74
75 // Token: 0x17000296 RID: 662
76 // (get) Token: 0x06001682 RID: 5762 RVA: 0x00062DB4 File Offset: 0x00060FB4
78 {
79 get
80 {
81 int num = this.height;
82 if (!true)
83 {
84 }
86 return rectangle;
87 }
88 }
89
90 // Token: 0x06001683 RID: 5763 RVA: 0x00062DD0 File Offset: 0x00060FD0
92 {
95 }
96
97 // Token: 0x06001684 RID: 5764 RVA: 0x00062DF4 File Offset: 0x00060FF4
98 public static bool operator !=(DisplayMode left, DisplayMode right)
99 {
100 if (left != null)
101 {
103 int num = left.height;
104 int num2 = left.width;
105 }
106 return true;
107 }
108
109 // Token: 0x06001685 RID: 5765 RVA: 0x00062E20 File Offset: 0x00061020
110 public static bool operator ==(DisplayMode left, DisplayMode right)
111 {
112 /*
113An exception occurred when decompiling this method (06001685)
114
115ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.DisplayMode::op_Equality(Microsoft.Xna.Framework.Graphics.DisplayMode,Microsoft.Xna.Framework.Graphics.DisplayMode)
116
117 ---> System.Exception: Basic block has to end with unconditional control flow.
118{
119 Block_0:
120 stloc:SurfaceFormat(var_1_0B, ldfld:SurfaceFormat(DisplayMode::format, ldloc:DisplayMode(left)))
121 stloc:int32(var_2_12, ldfld:int32(DisplayMode::height, ldloc:DisplayMode(left)))
122 stloc:int32(var_3_19, ldfld:int32(DisplayMode::width, ldloc:DisplayMode(left)))
123}
124
125 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
126 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
127 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
128 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
129 --- End of inner exception stack trace ---
130 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
131 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
132*/;
133 }
134
135 // Token: 0x06001686 RID: 5766 RVA: 0x00062E4C File Offset: 0x0006104C
136 public override bool Equals(object obj)
137 {
138 /*
139An exception occurred when decompiling this method (06001686)
140
141ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.DisplayMode::Equals(System.Object)
142
143 ---> System.Exception: Basic block has to end with unconditional control flow.
144{
145 Block_1:
146 stloc:SurfaceFormat(var_1_0E, ldfld:SurfaceFormat(DisplayMode::format, ldloc:DisplayMode(this)))
147 stloc:int32(var_2_15, ldfld:int32(DisplayMode::height, ldloc:DisplayMode(this)))
148 stloc:int32(var_3_1C, ldfld:int32(DisplayMode::width, ldloc:DisplayMode(this)))
149}
150
151 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
152 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
153 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
154 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
155 --- End of inner exception stack trace ---
156 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
157 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
158*/;
159 }
160
161 // Token: 0x06001687 RID: 5767 RVA: 0x00062E78 File Offset: 0x00061078
162 public override int GetHashCode()
163 {
164 int num;
165 return num.GetHashCode().GetHashCode();
166 }
167
168 // Token: 0x06001688 RID: 5768 RVA: 0x00062E90 File Offset: 0x00061090
169 public override string ToString()
170 {
171 string text;
172 string text2;
173 if (("{Width:" == null || "{Width:" != null) && (text == null || text != null) && (" Height:" == null || " Height:" != null) && (text2 == null || text2 != null) && (" Format:" == null || " Format:" != null))
174 {
176 string text3;
177 string text4;
178 if ((text3 == null || text3 != null) && (" AspectRatio:" == null || " AspectRatio:" != null) && (text4 == null || text4 != null) && ("}" == null || "}" != null))
179 {
180 string text5;
181 return text5;
182 }
183 }
184 throw new ArrayTypeMismatchException();
185 }
186
187 // Token: 0x040024CF RID: 9423
189
190 // Token: 0x040024D0 RID: 9424
191 private int height;
192
193 // Token: 0x040024D1 RID: 9425
194 private int width;
195 }
196}
class f__AnonymousType0<< Count > j__TPar
DisplayMode(int width, int height, SurfaceFormat format)
static bool operator==(DisplayMode left, DisplayMode right)
static bool operator!=(DisplayMode left, DisplayMode right)
void UpdateSize(int newWidth, int newHeight)