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
NativeInputDeviceManager.cs
Go to the documentation of this file.
1using System;
6using UnityEngine;
7
8namespace InControl
9{
10 // Token: 0x0200003E RID: 62
12 {
13 // Token: 0x06000344 RID: 836 RVA: 0x00009BC4 File Offset: 0x00007DC4
15 {
16 if (!true)
17 {
18 }
20 if (!true)
21 {
22 }
23 if (true || !true)
24 {
25 }
26 if (true || !true)
27 {
28 }
29 if (true || !true)
30 {
31 }
32 if (!true)
33 {
34 }
35 if (true)
36 {
37 return;
38 }
39 float fixedDeltaTime = Time.fixedDeltaTime;
40 }
41
42 // Token: 0x06000345 RID: 837 RVA: 0x00009C08 File Offset: 0x00007E08
43 public override void Destroy()
44 {
45 }
46
47 // Token: 0x06000346 RID: 838 RVA: 0x00009C18 File Offset: 0x00007E18
48 public override void Update(ulong updateTick, float deltaTime)
49 {
50 }
51
52 // Token: 0x06000347 RID: 839 RVA: 0x00009C28 File Offset: 0x00007E28
54 {
55 string serialNumber = deviceInfo.serialNumber;
56 if (this.customDeviceProfiles == null && this.systemDeviceProfiles == null && this.customDeviceProfiles == null)
57 {
59 }
60 }
61
62 // Token: 0x06000348 RID: 840 RVA: 0x000025E1 File Offset: 0x000007E1
63 private void AttachDevice(NativeInputDevice device)
64 {
65 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
66 }
67
68 // Token: 0x06000349 RID: 841 RVA: 0x000025E1 File Offset: 0x000007E1
69 private void DetachDevice(NativeInputDevice device)
70 {
71 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
72 }
73
74 // Token: 0x0600034A RID: 842 RVA: 0x00009C60 File Offset: 0x00007E60
76 {
77 /*
78An exception occurred when decompiling this method (0600034A)
79
80ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.NativeInputDevice InControl.NativeInputDeviceManager::FindAttachedDevice(System.UInt32)
81
82 ---> System.Exception: Basic block has to end with unconditional control flow.
83{
84 Block_0:
85 stloc:int32(var_1_0D, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<class InControl.NativeInputDevice>[exp:List`1](NativeInputDeviceManager::attachedDevices, ldloc:NativeInputDeviceManager(this))))
86 stloc:class [mscorlib]System.Collections.Generic.List`1<class InControl.NativeInputDevice>(var_2_14, ldfld:class [mscorlib]System.Collections.Generic.List`1<class InControl.NativeInputDevice>(NativeInputDeviceManager::attachedDevices, ldloc:NativeInputDeviceManager(this)))
87}
88
89 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
90 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
91 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
92 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
93 --- End of inner exception stack trace ---
94 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
95 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
96*/;
97 }
98
99 // Token: 0x0600034B RID: 843 RVA: 0x00009C84 File Offset: 0x00007E84
101 {
103 string serialNumber = deviceInfo.serialNumber;
104 string serialNumber2 = deviceInfo.serialNumber;
106 return nativeInputDevice;
107 }
108
109 // Token: 0x0600034C RID: 844 RVA: 0x00009CA8 File Offset: 0x00007EA8
113
114 // Token: 0x0600034D RID: 845 RVA: 0x000025E1 File Offset: 0x000007E1
116 {
117 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
118 }
119
120 // Token: 0x0600034E RID: 846 RVA: 0x00009CC4 File Offset: 0x00007EC4
122 {
123 if (!true)
124 {
125 }
127 this.AddSystemDeviceProfile(inputDeviceProfile);
128 }
129
130 // Token: 0x0600034F RID: 847 RVA: 0x00009CE0 File Offset: 0x00007EE0
132 {
134 if (Application.platform != RuntimePlatform.OSXEditor)
135 {
139 }
140 if ("InControl Native (version " == null || "InControl Native (version " != null)
141 {
142 string text;
143 if (text != null && text == null)
144 {
145 throw new ArrayTypeMismatchException();
146 }
147 if ("." != null && "." == null)
148 {
149 throw new ArrayTypeMismatchException();
150 }
151 string text2;
152 if (text2 != null && text2 == null)
153 {
154 throw new ArrayTypeMismatchException();
155 }
156 if ("." != null && "." == null)
157 {
158 throw new ArrayTypeMismatchException();
159 }
160 string text3;
161 if (text3 != null && text3 == null)
162 {
163 throw new ArrayTypeMismatchException();
164 }
165 if (")" != null && ")" == null)
166 {
167 throw new ArrayTypeMismatchException();
168 }
169 string text4;
171 }
172 throw new ArrayTypeMismatchException();
173 }
174
175 // Token: 0x06000350 RID: 848 RVA: 0x00009DB8 File Offset: 0x00007FB8
176 internal static bool Enable()
177 {
178 if (!true)
179 {
180 }
181 if (!true)
182 {
183 }
184 if (true)
185 {
186 Type type;
188 Type type2;
190 Type type3;
192 Type type4;
194 }
196 return true;
197 }
198
199 // Token: 0x040002DA RID: 730
201
202 // Token: 0x040002DB RID: 731
204
205 // Token: 0x040002DC RID: 732
207
208 // Token: 0x040002DD RID: 733
210
211 // Token: 0x040002DE RID: 734
213
214 // Token: 0x040002DF RID: 735
215 private uint[] deviceEvents;
216
217 // Token: 0x0200003F RID: 63
219 private sealed class <>c__DisplayClass9_0
220 {
221 // Token: 0x06000351 RID: 849 RVA: 0x00009E08 File Offset: 0x00008008
223 {
224 }
225
226 // Token: 0x06000352 RID: 850 RVA: 0x00009E1C File Offset: 0x0000801C
228 {
229 string serialNumber = this.deviceInfo.serialNumber;
230 string name = this.deviceInfo.name;
231 InputDeviceMatcher[] matchers = profile.matchers;
232 bool flag;
233 return flag;
234 }
235
236 // Token: 0x06000353 RID: 851 RVA: 0x00009E4C File Offset: 0x0000804C
238 {
239 string serialNumber = this.deviceInfo.serialNumber;
240 string name = this.deviceInfo.name;
241 InputDeviceMatcher[] matchers = profile.matchers;
242 bool flag;
243 return flag;
244 }
245
246 // Token: 0x06000354 RID: 852 RVA: 0x00009E7C File Offset: 0x0000807C
248 {
249 string serialNumber = this.deviceInfo.serialNumber;
250 string name = this.deviceInfo.name;
251 InputDeviceMatcher[] lastResortMatchers = profile.lastResortMatchers;
252 bool flag;
253 return flag;
254 }
255
256 // Token: 0x06000355 RID: 853 RVA: 0x00009EAC File Offset: 0x000080AC
258 {
259 string serialNumber = this.deviceInfo.serialNumber;
260 string name = this.deviceInfo.name;
261 InputDeviceMatcher[] lastResortMatchers = profile.lastResortMatchers;
262 bool flag;
263 return flag;
264 }
265
266 // Token: 0x040002E0 RID: 736
268 }
269 }
270}
class f__AnonymousType0<< Count > j__TPar
InputDeviceMatcher[] lastResortMatchers
static void HideDevicesWithProfile(Type type)
static void AddDeviceManager(InputDeviceManager deviceManager)
static void LogInfo(string text)
Definition Logger.cs:35
NativeInputDevice FindAttachedDevice(uint deviceHandle)
void AddSystemDeviceProfile(InputDeviceProfile deviceProfile)
static NativeInputDevice SystemFindDetachedDevice(InputDeviceInfo deviceInfo, ReadOnlyCollection< NativeInputDevice > detachedDevices)
static bool CheckPlatformSupport(ICollection< string > errors)
readonly List< InputDeviceProfile > systemDeviceProfiles
readonly List< InputDeviceProfile > customDeviceProfiles
void AttachDevice(NativeInputDevice device)
readonly List< NativeInputDevice > attachedDevices
override void Update(ulong updateTick, float deltaTime)
void DetectDevice(uint deviceHandle, InputDeviceInfo deviceInfo)
readonly List< NativeInputDevice > detachedDevices
static Func< InputDeviceInfo, ReadOnlyCollection< NativeInputDevice >, NativeInputDevice > CustomFindDetachedDevice
void DetachDevice(NativeInputDevice device)
NativeInputDevice FindDetachedDevice(InputDeviceInfo deviceInfo)
static RuntimePlatform platform
static float fixedDeltaTime
Definition Time.cs:44