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
JoystickCapabilities.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200034D RID: 845
8 public struct JoystickCapabilities
9 {
10 // Token: 0x17000257 RID: 599
11 // (get) Token: 0x0600159D RID: 5533 RVA: 0x000021DB File Offset: 0x000003DB
12 // (set) Token: 0x0600159E RID: 5534 RVA: 0x00060CB0 File Offset: 0x0005EEB0
13 public bool IsConnected
14 {
16 readonly get
17 {
18 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19 }
21 internal set
22 {
23 }
24 }
25
26 // Token: 0x17000258 RID: 600
27 // (get) Token: 0x0600159F RID: 5535 RVA: 0x00060CC0 File Offset: 0x0005EEC0
28 // (set) Token: 0x060015A0 RID: 5536 RVA: 0x00060CD4 File Offset: 0x0005EED4
29 public string Identifier
30 {
32 readonly get
33 {
34 return this.<Identifier>k__BackingField;
35 }
37 internal set
38 {
40 }
41 }
42
43 // Token: 0x17000259 RID: 601
44 // (get) Token: 0x060015A1 RID: 5537 RVA: 0x00060CE8 File Offset: 0x0005EEE8
45 // (set) Token: 0x060015A2 RID: 5538 RVA: 0x00060CFC File Offset: 0x0005EEFC
46 public bool IsGamepad
47 {
49 readonly get
50 {
51 return this.<IsGamepad>k__BackingField;
52 }
54 internal set
55 {
56 }
57 }
58
59 // Token: 0x1700025A RID: 602
60 // (get) Token: 0x060015A3 RID: 5539 RVA: 0x00060D0C File Offset: 0x0005EF0C
61 // (set) Token: 0x060015A4 RID: 5540 RVA: 0x00060D20 File Offset: 0x0005EF20
62 public int AxisCount
63 {
65 readonly get
66 {
67 return this.<AxisCount>k__BackingField;
68 }
70 internal set
71 {
73 }
74 }
75
76 // Token: 0x1700025B RID: 603
77 // (get) Token: 0x060015A5 RID: 5541 RVA: 0x00060D34 File Offset: 0x0005EF34
78 // (set) Token: 0x060015A6 RID: 5542 RVA: 0x00060D48 File Offset: 0x0005EF48
79 public int ButtonCount
80 {
82 readonly get
83 {
84 return this.<ButtonCount>k__BackingField;
85 }
87 internal set
88 {
90 }
91 }
92
93 // Token: 0x1700025C RID: 604
94 // (get) Token: 0x060015A7 RID: 5543 RVA: 0x00060D5C File Offset: 0x0005EF5C
95 // (set) Token: 0x060015A8 RID: 5544 RVA: 0x00060D70 File Offset: 0x0005EF70
96 public int HatCount
97 {
99 readonly get
100 {
101 return this.<HatCount>k__BackingField;
102 }
104 internal set
105 {
107 }
108 }
109
110 // Token: 0x060015A9 RID: 5545 RVA: 0x00060D84 File Offset: 0x0005EF84
112 {
113 string text = left.<Identifier>k__BackingField;
114 bool flag = left.<IsGamepad>k__BackingField;
115 int num = left.<AxisCount>k__BackingField;
116 int num2 = left.<ButtonCount>k__BackingField;
117 int num3 = left.<HatCount>k__BackingField;
118 bool flag2;
119 return flag2;
120 }
121
122 // Token: 0x060015AA RID: 5546 RVA: 0x00060DBC File Offset: 0x0005EFBC
124 {
125 bool flag = left.<IsConnected>k__BackingField;
126 bool flag2;
127 return flag2;
128 }
129
130 // Token: 0x060015AB RID: 5547 RVA: 0x00060DD4 File Offset: 0x0005EFD4
131 public override bool Equals(object obj)
132 {
133 if (obj != null)
134 {
135 }
136 bool flag = this.<IsConnected>k__BackingField;
137 bool flag2;
138 return flag2;
139 }
140
141 // Token: 0x060015AC RID: 5548 RVA: 0x00060DF0 File Offset: 0x0005EFF0
142 public override int GetHashCode()
143 {
144 /*
145An exception occurred when decompiling this method (060015AC)
146
147ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Microsoft.Xna.Framework.Input.JoystickCapabilities::GetHashCode()
148
149 ---> System.Exception: Basic block has to end with unconditional control flow.
150{
151 Block_0:
152 stloc:string(var_0_06, ldfld:string(JoystickCapabilities::<Identifier>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickCapabilities&(this)))
153}
154
155 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
156 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
157 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
158 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
159 --- End of inner exception stack trace ---
160 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
161 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
162*/;
163 }
164
165 // Token: 0x060015AD RID: 5549 RVA: 0x00060E04 File Offset: 0x0005F004
166 public override string ToString()
167 {
168 string text;
169 if (("[JoystickCapabilities: IsConnected=" == null || "[JoystickCapabilities: IsConnected=" != null) && (text == null || text != null))
170 {
171 string text2 = this.<Identifier>k__BackingField;
172 if ((text2 == null || text2 != null) && (", IsGamepad=" == null || ", IsGamepad=" != null))
173 {
174 bool flag = this.<IsGamepad>k__BackingField;
175 string text3;
176 if ((text3 == null || text3 != null) && (" , AxisCount=" == null || " , AxisCount=" != null))
177 {
178 int num = this.<AxisCount>k__BackingField;
179 string text4;
180 if ((text4 == null || text4 != null) && (", ButtonCount=" == null || ", ButtonCount=" != null))
181 {
182 int num2 = this.<ButtonCount>k__BackingField;
183 string text5;
184 if ((text5 == null || text5 != null) && (", HatCount=" == null || ", HatCount=" != null))
185 {
186 int num3 = this.<HatCount>k__BackingField;
187 string text6;
188 if ((text6 == null || text6 != null) && ("]" == null || "]" != null))
189 {
190 string text7;
191 return text7;
192 }
193 }
194 }
195 }
196 }
197 }
198 throw new ArrayTypeMismatchException();
199 }
200
201 // Token: 0x04002324 RID: 8996
203 private bool <IsConnected>k__BackingField;
204
205 // Token: 0x04002325 RID: 8997
207 private string <Identifier>k__BackingField;
208
209 // Token: 0x04002326 RID: 8998
211 private bool <IsGamepad>k__BackingField;
212
213 // Token: 0x04002327 RID: 8999
215 private int <AxisCount>k__BackingField;
216
217 // Token: 0x04002328 RID: 9000
219 private int <ButtonCount>k__BackingField;
220
221 // Token: 0x04002329 RID: 9001
223 private int <HatCount>k__BackingField;
224 }
225}
class f__AnonymousType0<< Count > j__TPar
static bool operator!=(JoystickCapabilities left, JoystickCapabilities right)
static bool operator==(JoystickCapabilities left, JoystickCapabilities right)