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
XNAUnityRunner.cs
Go to the documentation of this file.
1using System;
2using System.IO;
7using Terraria;
8using UnityEngine;
9
10// Token: 0x0200030B RID: 779
12{
13 // Token: 0x170001B4 RID: 436
14 // (get) Token: 0x06001216 RID: 4630 RVA: 0x000581F8 File Offset: 0x000563F8
16 {
17 get
18 {
19 return XNAUnityRunner.ForcedInputMode.KeyboardMouse;
20 }
21 }
22
23 // Token: 0x170001B5 RID: 437
24 // (get) Token: 0x06001217 RID: 4631 RVA: 0x00058208 File Offset: 0x00056408
26 {
27 get
28 {
29 return XNAUnityRunner.ForcedInputMode.KeyboardMouse;
30 }
31 }
32
33 // Token: 0x06001218 RID: 4632 RVA: 0x0005823C File Offset: 0x0005643C
34 private void Awake()
35 {
37 if (!true)
38 {
39 }
42 if (!true)
43 {
44 }
45 if (!true)
46 {
47 }
48 long num = 0L;
50 Screen.sleepTimeout = (int)num;
54 }
55
56 // Token: 0x06001219 RID: 4633 RVA: 0x00058290 File Offset: 0x00056490
57 private void Start()
58 {
59 this._game.UnityStart();
60 this.isStarted = true;
61 }
62
63 // Token: 0x0600121A RID: 4634 RVA: 0x000582B0 File Offset: 0x000564B0
64 private void Application_lowMemory()
65 {
66 if (!true)
67 {
68 }
71 }
72
73 // Token: 0x0600121B RID: 4635 RVA: 0x000582D0 File Offset: 0x000564D0
74 private void OnDisable()
75 {
76 if (!true)
77 {
78 }
79 }
80
81 // Token: 0x0600121C RID: 4636 RVA: 0x000582E0 File Offset: 0x000564E0
82 private void OnGUI()
83 {
84 }
85
86 // Token: 0x0600121D RID: 4637 RVA: 0x000582F0 File Offset: 0x000564F0
87 public void OnApplicationQuit()
88 {
89 if (!true)
90 {
91 }
93 if (!true)
94 {
95 }
99 }
100
101 // Token: 0x0600121E RID: 4638 RVA: 0x00058320 File Offset: 0x00056520
102 private void OnApplicationFocus(bool focus)
103 {
105 }
106
107 // Token: 0x0600121F RID: 4639 RVA: 0x00058338 File Offset: 0x00056538
108 private void OnApplicationPause(bool pause)
109 {
110 Game game = this._game;
111 if (game != null)
112 {
113 if (game == null)
114 {
115 }
116 if (game != null)
117 {
118 bool isEditor = Application.isEditor;
122 Game game2 = this._game;
123 bool active = game2._active;
124 long num = 0L;
125 game2._active = active;
126 if (game2 == null)
127 {
128 }
129 if (game2.content.p == null)
130 {
131 }
132 if (num != 0L)
133 {
134 return;
135 }
136 if (this._game != null)
137 {
138 }
139 if (Main.ActivePlayerFileData != null)
140 {
141 Main.ActivePlayerFileData.OnLostFocus();
142 }
143 return;
144 }
145 }
146 }
147
148 // Token: 0x06001220 RID: 4640 RVA: 0x000583E0 File Offset: 0x000565E0
150 {
151 string text;
152 bool flag = text.EndsWith("/");
154 string text3;
155 string text4;
156 string text2 = text3 + "_" + text4 + ".png";
157 bool flag2 = File.Exists(text2);
158 return text2;
159 }
160
161 // Token: 0x170001B6 RID: 438
162 // (get) Token: 0x06001221 RID: 4641 RVA: 0x0005842C File Offset: 0x0005662C
163 public static int ScreenWidth
164 {
165 get
166 {
167 return Screen.width;
168 }
169 }
170
171 // Token: 0x170001B7 RID: 439
172 // (get) Token: 0x06001222 RID: 4642 RVA: 0x00058440 File Offset: 0x00056640
173 public static int ScreenHeight
174 {
175 get
176 {
177 return Screen.height;
178 }
179 }
180
181 // Token: 0x06001223 RID: 4643 RVA: 0x00058454 File Offset: 0x00056654
182 private void Update()
183 {
184 if (!true)
185 {
186 }
188 float deltaTime = Time.deltaTime;
189 this.ExecuteFrame(deltaTime);
190 }
191
192 // Token: 0x170001B8 RID: 440
193 // (get) Token: 0x06001224 RID: 4644 RVA: 0x0005847C File Offset: 0x0005667C
194 public static global::UnityEngine.Vector3 MousePosition
195 {
196 get
197 {
198 /*
199An exception occurred when decompiling this method (06001224)
200
201ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector3 XNAUnityRunner::get_MousePosition()
202
203 ---> System.Exception: Basic block has to end with unconditional control flow.
204{
205 Block_0:
206 stloc:DrPlatformType(var_2_07, callgetter:DrPlatformType(DrPlatform::get_CurrentPlatform))
207 stloc:DrPlatformType(var_4_0F, callgetter:DrPlatformType(DrPlatform::get_CurrentPlatform))
208 stloc:iOS_Mouse(var_6_19, callgetter:iOS_Mouse(IOS::get_Mouse))
209 stloc:float32(var_7_27, ldfld:float32(Vector3::x, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](iOS_Mouse::MousePosition, ldloc:iOS_Mouse(var_6_19))))
210 stloc:float32(var_8_35, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](iOS_Mouse::MousePosition, ldloc:iOS_Mouse(var_6_19))))
211 stloc:float32(var_9_43, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](iOS_Mouse::MousePosition, ldloc:iOS_Mouse(var_6_19))))
212 stloc:Vector3(var_11_4D, callgetter:Vector3(Input::get_mousePosition))
213}
214
215 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
216 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
217 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
218 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
219 --- End of inner exception stack trace ---
220 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
221 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
222*/;
223 }
224 }
225
226 // Token: 0x170001B9 RID: 441
227 // (get) Token: 0x06001225 RID: 4645 RVA: 0x000584D8 File Offset: 0x000566D8
228 public static global::UnityEngine.Vector3 MousePositionReal
229 {
230 get
231 {
232 if (!true)
233 {
234 }
235 global::UnityEngine.Vector3 mousePosition = XNAUnityRunner.MousePosition;
236 return 1;
237 }
238 }
239
240 // Token: 0x06001226 RID: 4646 RVA: 0x000584F0 File Offset: 0x000566F0
241 public static float GetMouseScrollDelta(bool ignoreEditor = false)
242 {
243 /*
244An exception occurred when decompiling this method (06001226)
245
246ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single XNAUnityRunner::GetMouseScrollDelta(System.Boolean)
247
248 ---> System.Exception: Basic block has to end with unconditional control flow.
249{
250 Block_0:
251 stloc:DrPlatformType(var_2_07, callgetter:DrPlatformType(DrPlatform::get_CurrentPlatform))
252 stloc:float32(var_4_14, ldfld:float32(iOS_Mouse::MouseScroll, callgetter:iOS_Mouse(IOS::get_Mouse)))
253 stloc:Vector2(var_6_1E, callgetter:Vector2(Input::get_mouseScrollDelta))
254}
255
256 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
257 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
258 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
259 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
260 --- End of inner exception stack trace ---
261 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
262 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
263*/;
264 }
265
266 // Token: 0x06001227 RID: 4647 RVA: 0x0005851C File Offset: 0x0005671C
267 public static bool GetMouseButton(int index, bool ignoreEditor = false)
268 {
269 bool flag;
270 return flag;
271 }
272
273 // Token: 0x06001228 RID: 4648 RVA: 0x00058564 File Offset: 0x00056764
274 public static bool GetMouseButtonUp(int index, bool ignoreEditor = false)
275 {
276 bool flag;
277 return flag;
278 }
279
280 // Token: 0x06001229 RID: 4649 RVA: 0x000585DC File Offset: 0x000567DC
281 public static bool GetMouseButtonDown(int index, bool ignoreEditor = false)
282 {
283 bool flag;
284 return flag;
285 }
286
287 // Token: 0x170001BA RID: 442
288 // (get) Token: 0x0600122A RID: 4650 RVA: 0x00058654 File Offset: 0x00056854
289 // (set) Token: 0x0600122B RID: 4651 RVA: 0x00058664 File Offset: 0x00056864
290 public static bool MobileKeyboardLocked
291 {
292 get
293 {
294 /*
295An exception occurred when decompiling this method (0600122A)
296
297ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean XNAUnityRunner::get_MobileKeyboardLocked()
298
299 ---> System.Exception: Basic block has to end with unconditional control flow.
300{
301 IL_0000:
302 brtrue(IL_0000, ldc.i4:bool(1))
303}
304
305 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
306 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
307 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
308 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
309 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
310 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
311 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
312 --- End of inner exception stack trace ---
313 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
314 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
315*/;
316 }
317 set
318 {
319 if (!true)
320 {
321 }
322 if (!true)
323 {
324 }
326 }
327 }
328
329 // Token: 0x170001BB RID: 443
330 // (get) Token: 0x0600122C RID: 4652 RVA: 0x00058680 File Offset: 0x00056880
331 public static bool KeyboardModeLocked
332 {
333 get
334 {
336 if (!true)
337 {
338 }
339 if (!true)
340 {
341 return;
342 }
343 }
344 }
345
346 // Token: 0x170001BC RID: 444
347 // (get) Token: 0x0600122D RID: 4653 RVA: 0x0005869C File Offset: 0x0005689C
348 // (set) Token: 0x0600122E RID: 4654 RVA: 0x000586AC File Offset: 0x000568AC
349 public static bool MobileControllerLocked
350 {
351 get
352 {
353 /*
354An exception occurred when decompiling this method (0600122D)
355
356ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean XNAUnityRunner::get_MobileControllerLocked()
357
358 ---> System.Exception: Basic block has to end with unconditional control flow.
359{
360 IL_0000:
361 brtrue(IL_0000, ldc.i4:bool(1))
362}
363
364 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
365 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
366 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
367 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
368 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
369 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
370 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
371 --- End of inner exception stack trace ---
372 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
373 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
374*/;
375 }
376 set
377 {
378 if (!true)
379 {
380 }
381 if (!true)
382 {
383 }
385 }
386 }
387
388 // Token: 0x170001BD RID: 445
389 // (get) Token: 0x0600122F RID: 4655 RVA: 0x000586C8 File Offset: 0x000568C8
390 public static bool ControllerModeLocked
391 {
392 get
393 {
395 return true;
396 }
397 }
398
399 // Token: 0x170001BE RID: 446
400 // (get) Token: 0x06001230 RID: 4656 RVA: 0x000586F0 File Offset: 0x000568F0
401 // (set) Token: 0x06001231 RID: 4657 RVA: 0x00058700 File Offset: 0x00056900
402 public static bool MobileTouchLocked
403 {
404 get
405 {
406 /*
407An exception occurred when decompiling this method (06001230)
408
409ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean XNAUnityRunner::get_MobileTouchLocked()
410
411 ---> System.Exception: Basic block has to end with unconditional control flow.
412{
413 IL_0000:
414 brtrue(IL_0000, ldc.i4:bool(1))
415}
416
417 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
418 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
419 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
420 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
421 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
422 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
423 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
424 --- End of inner exception stack trace ---
425 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
426 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
427*/;
428 }
429 set
430 {
431 if (!true)
432 {
433 }
434 if (!true)
435 {
436 }
439 }
440 }
441
442 // Token: 0x170001BF RID: 447
443 // (get) Token: 0x06001232 RID: 4658 RVA: 0x00058720 File Offset: 0x00056920
444 public static bool TouchInputKeyboardLocked
445 {
446 get
447 {
448 if (!true)
449 {
450 }
453 bool mousePresent = Input.mousePresent;
454 return true;
455 }
456 }
457
458 // Token: 0x170001C0 RID: 448
459 // (get) Token: 0x06001233 RID: 4659 RVA: 0x0005874C File Offset: 0x0005694C
460 public static bool TouchModeLocked
461 {
462 get
463 {
465 if (!true)
466 {
467 }
468 if (!true)
469 {
470 return;
471 }
472 }
473 }
474
475 // Token: 0x06001234 RID: 4660 RVA: 0x00058768 File Offset: 0x00056968
476 private void SetMobileMouseMode(int mode)
477 {
479 int num = this.mobileMouseMode;
480 if (num != 0)
481 {
482 }
483 }
484
485 // Token: 0x06001235 RID: 4661 RVA: 0x000587D4 File Offset: 0x000569D4
486 private void ExecuteFrame(float timeDelta)
487 {
488 int num = 1;
489 if (num == 0)
490 {
491 }
492 if (num == 0)
493 {
494 }
496 if (num == 0)
497 {
498 }
501 long num2 = 0L;
504 if (num2 != 0L)
505 {
507 }
511 int num3 = 1;
512 if (num3 == 0)
513 {
514 }
515 if (num3 != 0)
516 {
518 }
519 bool keyboardOpen = this.KeyboardOpen;
521 if (keyboardOpen)
522 {
523 global::UnityEngine.Vector3 mousePosition = XNAUnityRunner.MousePosition;
524 return;
525 }
526 int num4 = 1;
527 this.KeyboardOpen = num4 != 0;
528 }
529
530 // Token: 0x170001C1 RID: 449
531 // (get) Token: 0x06001236 RID: 4662 RVA: 0x00058AE0 File Offset: 0x00056CE0
532 public static bool RenderingUI
533 {
534 get
535 {
536 /*
537An exception occurred when decompiling this method (06001236)
538
539ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean XNAUnityRunner::get_RenderingUI()
540
541 ---> System.Exception: Basic block has to end with unconditional control flow.
542{
543 IL_0000:
544 brtrue(IL_0000, ldc.i4:bool(1))
545}
546
547 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
548 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
549 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
550 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
551 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
552 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
553 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
554 --- End of inner exception stack trace ---
555 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
556 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
557*/;
558 }
559 }
560
561 // Token: 0x170001C2 RID: 450
562 // (get) Token: 0x06001237 RID: 4663 RVA: 0x000021DB File Offset: 0x000003DB
564 {
565 get
566 {
567 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
568 }
569 }
570
571 // Token: 0x170001C3 RID: 451
572 // (get) Token: 0x06001238 RID: 4664 RVA: 0x000021DB File Offset: 0x000003DB
574 {
575 get
576 {
577 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
578 }
579 }
580
581 // Token: 0x170001C4 RID: 452
582 // (get) Token: 0x06001239 RID: 4665 RVA: 0x000021DB File Offset: 0x000003DB
583 // (set) Token: 0x0600123A RID: 4666 RVA: 0x00058AF0 File Offset: 0x00056CF0
584 private static int _lastUIFrame
585 {
586 get
587 {
588 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
589 }
590 set
591 {
592 }
593 }
594
595 // Token: 0x0600123B RID: 4667 RVA: 0x00058B00 File Offset: 0x00056D00
597 {
598 /*
599An exception occurred when decompiling this method (0600123B)
600
601ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 XNAUnityRunner::AdjustRealScreenForUI(Microsoft.Xna.Framework.Vector2)
602
603 ---> System.Exception: Basic block has to end with unconditional control flow.
604{
605 IL_0003:
606 stloc:int32(var_1_0A, callgetter:int32(Screen::get_width))
607 stloc:int32(var_3_12, callgetter:int32(Screen::get_height))
608}
609
610 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
611 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
612 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
613 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
614 --- End of inner exception stack trace ---
615 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
616 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
617*/;
618 }
619
620 // Token: 0x0600123C RID: 4668 RVA: 0x00058B20 File Offset: 0x00056D20
622 {
623 /*
624An exception occurred when decompiling this method (0600123C)
625
626ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 XNAUnityRunner::AdjustWorldForRealScreen(Microsoft.Xna.Framework.Vector2)
627
628 ---> System.Exception: Basic block has to end with unconditional control flow.
629{
630 IL_000E:
631 stloc:int32(var_3_15, callgetter:int32(Screen::get_width))
632 stloc:Vector2(var_5_1E, callgetter:Vector2(Main::get_screenPosition))
633 stloc:int32(var_7_28, callgetter:int32(Screen::get_height))
634}
635
636 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
637 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
638 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
639 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
640 --- End of inner exception stack trace ---
641 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
642 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
643*/;
644 }
645
646 // Token: 0x0600123D RID: 4669 RVA: 0x00058B58 File Offset: 0x00056D58
648 {
649 /*
650An exception occurred when decompiling this method (0600123D)
651
652ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 XNAUnityRunner::AdjustUIForRealScreen(Microsoft.Xna.Framework.Vector2)
653
654 ---> System.Exception: Basic block has to end with unconditional control flow.
655{
656 IL_0003:
657 stloc:int32(var_1_0A, callgetter:int32(Screen::get_width))
658 stloc:int32(var_3_12, callgetter:int32(Screen::get_height))
659 stloc:int32(var_5_1B, callgetter:int32(Screen::get_height))
660}
661
662 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
663 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
664 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
665 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
666 --- End of inner exception stack trace ---
667 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
668 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
669*/;
670 }
671
672 // Token: 0x0600123E RID: 4670 RVA: 0x00058B84 File Offset: 0x00056D84
674 {
675 /*
676An exception occurred when decompiling this method (0600123E)
677
678ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 XNAUnityRunner::AdjustWorldPositionForUI(Microsoft.Xna.Framework.Vector2)
679
680 ---> System.Exception: Basic block has to end with unconditional control flow.
681{
682 IL_0010:
683 stloc:Vector2(var_4_17, callgetter:Vector2(Main::get_screenPosition))
684}
685
686 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
687 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
688 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
689 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
690 --- End of inner exception stack trace ---
691 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
692 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
693*/;
694 }
695
696 // Token: 0x0600123F RID: 4671 RVA: 0x00058BAC File Offset: 0x00056DAC
698 {
699 /*
700An exception occurred when decompiling this method (0600123F)
701
702ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 XNAUnityRunner::ScaleUIDirectionForRealScreen(Microsoft.Xna.Framework.Vector2)
703
704 ---> System.Exception: Basic block has to end with unconditional control flow.
705{
706 IL_0003:
707 stloc:int32(var_1_0A, callgetter:int32(Screen::get_width))
708 stloc:int32(var_3_12, callgetter:int32(Screen::get_height))
709}
710
711 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
712 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
713 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
714 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
715 --- End of inner exception stack trace ---
716 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
717 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
718*/;
719 }
720
721 // Token: 0x06001240 RID: 4672 RVA: 0x00058BCC File Offset: 0x00056DCC
723 {
724 if (!true)
725 {
726 }
727 return 32640;
728 }
729
730 // Token: 0x06001241 RID: 4673 RVA: 0x00058BE4 File Offset: 0x00056DE4
732 {
733 if (!true)
734 {
735 }
736 return 32640;
737 }
738
739 // Token: 0x06001242 RID: 4674 RVA: 0x00058BFC File Offset: 0x00056DFC
741 {
742 /*
743An exception occurred when decompiling this method (06001242)
744
745ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 XNAUnityRunner::AdjustScreenPositionForWorld(Microsoft.Xna.Framework.Vector2)
746
747 ---> System.Exception: Basic block has to end with unconditional control flow.
748{
749 IL_0003:
750 stloc:Vector2(var_1_0A, callgetter:Vector2(Main::get_screenPosition))
751 stloc:Vector2(var_3_12, callgetter:Vector2(Main::get_screenPosition))
752}
753
754 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
755 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
756 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
757 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
758 --- End of inner exception stack trace ---
759 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
760 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
761*/;
762 }
763
764 // Token: 0x06001243 RID: 4675 RVA: 0x00058C1C File Offset: 0x00056E1C
765 public static void SetupRenderingUI(bool renderingUI)
766 {
767 if (!true)
768 {
769 }
770 }
771
772 // Token: 0x06001244 RID: 4676 RVA: 0x00058D1C File Offset: 0x00056F1C
774 {
775 this.lastMousePosition.z = (float)50298;
776 this.ReleaseVersion = "v1.3.0.7.2 Build ";
777 this.mobileMouseMode = 50298;
778 base..ctor();
779 }
780
781 // Token: 0x06001245 RID: 4677 RVA: 0x00058D7C File Offset: 0x00056F7C
782 // Note: this type is marked as 'beforefieldinit'.
784 {
785 }
786
787 // Token: 0x040021A4 RID: 8612
789
790 // Token: 0x040021A5 RID: 8613
792
793 // Token: 0x040021A6 RID: 8614
795
796 // Token: 0x040021A7 RID: 8615
798
799 // Token: 0x040021A8 RID: 8616
801
802 // Token: 0x040021A9 RID: 8617
804
805 // Token: 0x040021AA RID: 8618
807
808 // Token: 0x040021AB RID: 8619
809 public bool EnableBatching = true;
810
811 // Token: 0x040021AC RID: 8620
812 public bool DumpMemory;
813
814 // Token: 0x040021AD RID: 8621
815 public string ReleaseVersion;
816
817 // Token: 0x040021AE RID: 8622
818 public int BuildNumber;
819
820 // Token: 0x040021AF RID: 8623
821 public bool DumpGeometryStats;
822
823 // Token: 0x040021B0 RID: 8624
824 public float DefaultUITabletMode = (float)16512;
825
826 // Token: 0x040021B1 RID: 8625
828
829 // Token: 0x040021B2 RID: 8626
830 public int WorldInputEdgeRange = 28;
831
832 // Token: 0x040021B3 RID: 8627
834
835 // Token: 0x040021B4 RID: 8628
837
838 // Token: 0x040021B5 RID: 8629
840
841 // Token: 0x040021B6 RID: 8630
843
844 // Token: 0x040021B7 RID: 8631
846
847 // Token: 0x040021B8 RID: 8632
848 public float SimulatedCloudSyncTime = (float)16256;
849
850 // Token: 0x040021B9 RID: 8633
852
853 // Token: 0x040021BA RID: 8634
854 private Game _game;
855
856 // Token: 0x040021BB RID: 8635
857 public bool isStarted;
858
859 // Token: 0x040021BC RID: 8636
860 private static bool broadcastTest;
861
862 // Token: 0x040021BD RID: 8637
863 private static bool firstUpdate;
864
865 // Token: 0x040021BE RID: 8638
866 private static global::UnityEngine.Vector3 LastMousePosition;
867
868 // Token: 0x040021BF RID: 8639
869 private global::UnityEngine.Vector3 lastMousePosition;
870
871 // Token: 0x040021C0 RID: 8640
872 private bool KeyboardOpen;
873
874 // Token: 0x040021C1 RID: 8641
876
877 // Token: 0x040021C2 RID: 8642
879
880 // Token: 0x040021C3 RID: 8643
882
883 // Token: 0x040021C4 RID: 8644
884 private bool switchNextFrame;
885
886 // Token: 0x040021C5 RID: 8645
887 public static bool _mobileKeyboardLocked;
888
889 // Token: 0x040021C6 RID: 8646
890 public static int DelayInputSwitch;
891
892 // Token: 0x040021C7 RID: 8647
893 public static bool _mobileControllerLocked;
894
895 // Token: 0x040021C8 RID: 8648
896 public static bool _mobileTouchLocked;
897
898 // Token: 0x040021C9 RID: 8649
899 private int mobileMouseMode;
900
901 // Token: 0x040021CA RID: 8650
902 private static bool _renderingUI;
903
904 // Token: 0x040021CB RID: 8651
905 public static int _frame;
906
907 // Token: 0x040021CC RID: 8652
909
910 // Token: 0x0200030C RID: 780
911 public enum ForcedInputMode
912 {
913 // Token: 0x040021CE RID: 8654
914 None,
915 // Token: 0x040021CF RID: 8655
916 Touch,
917 // Token: 0x040021D0 RID: 8656
919 // Token: 0x040021D1 RID: 8657
921 }
922
923 // Token: 0x0200030D RID: 781
924 public class MouseStateBackup
925 {
926 // Token: 0x06001246 RID: 4678 RVA: 0x00058D8C File Offset: 0x00056F8C
927 public void Capture()
928 {
929 if (!true)
930 {
931 }
932 int mouseX = Main.mouseX;
933 this._mouseX = mouseX;
934 int mouseY = Main.mouseY;
935 this._mouseY = mouseY;
936 int lastMouseX = Main.lastMouseX;
937 this._lastMouseX = lastMouseX;
938 int lastMouseY = Main.lastMouseY;
939 this._lastMouseX = lastMouseY;
940 bool mouseLeft = Main.mouseLeft;
941 this._mouseLeft = true;
942 bool mouseLeftRelease = Main.mouseLeftRelease;
944 bool mouseRight = Main.mouseRight;
945 this._mouseRight = true;
946 bool mouseRightRelease = Main.mouseRightRelease;
948 int worldMouseX = Main.worldMouseX;
949 this._worldMouseX = worldMouseX;
950 int worldMouseY = Main.worldMouseY;
951 this._worldMouseY = worldMouseY;
952 }
953
954 // Token: 0x06001247 RID: 4679 RVA: 0x00058E48 File Offset: 0x00057048
955 public void Restore()
956 {
957 int mouseX = this._mouseX;
958 if (!true)
959 {
960 }
961 Main.mouseX = mouseX;
962 Main.mouseY = this._mouseY;
971 if (true)
972 {
973 return;
974 }
975 if (!true)
976 {
977 }
978 Main.mouseLeft = false;
980 }
981
982 // Token: 0x06001248 RID: 4680 RVA: 0x00058EDC File Offset: 0x000570DC
983 public void UpdateState()
984 {
985 if (!true)
986 {
987 }
989 int mouseX = this._mouseX;
990 bool mouseLeft = this._mouseLeft;
991 this._mouseX = 1;
992 this._lastMouseX = mouseX;
993 bool mouseRight = this._mouseRight;
995 this._mouseLeft = true;
996 this._mouseRightRelease = mouseRight;
997 this._mouseRight = true;
998 if (!true)
999 {
1000 }
1001 if (!true)
1002 {
1004 }
1005 }
1006
1007 // Token: 0x06001249 RID: 4681 RVA: 0x00058F44 File Offset: 0x00057144
1009 {
1010 }
1011
1012 // Token: 0x040021D2 RID: 8658
1013 private int _mouseX;
1014
1015 // Token: 0x040021D3 RID: 8659
1016 private int _mouseY;
1017
1018 // Token: 0x040021D4 RID: 8660
1019 private int _lastMouseX;
1020
1021 // Token: 0x040021D5 RID: 8661
1022 private int _lastMouseY;
1023
1024 // Token: 0x040021D6 RID: 8662
1025 private int _worldMouseX;
1026
1027 // Token: 0x040021D7 RID: 8663
1028 private int _worldMouseY;
1029
1030 // Token: 0x040021D8 RID: 8664
1031 private bool _mouseLeft;
1032
1033 // Token: 0x040021D9 RID: 8665
1034 private bool _mouseRight;
1035
1036 // Token: 0x040021DA RID: 8666
1037 private bool _mouseLeftRelease;
1038
1039 // Token: 0x040021DB RID: 8667
1041 }
1042}
class f__AnonymousType0<< Count > j__TPar
static void AppFocusGained()
static void UpdateMouse()
static void UpdateMouse()
static void Setup()
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
static bool IsCurrentPlatform(DrPlatform.DrPlatformType platform)
Definition DrPlatform.cs:49
static void Update()
static void LoadReleaseLayout()
static MouseState GetState(GameWindow window)
Definition Mouse.cs:10
static void StopSearching()
static void Create()
Definition Singleton.cs:24
static DirectoryInfo CreateDirectory(string path)
Definition Directory.cs:40
static bool Exists(string path)
Definition File.cs:86
static bool HasKeyboard
Definition Main.cs:8469
static bool mouseRight
Definition Main.cs:685
static int lastMouseY
Definition Main.cs:657
static bool mouseLeftRelease
Definition Main.cs:2029
static PlayerFileData ActivePlayerFileData
Definition Main.cs:2701
static bool mouseRightRelease
Definition Main.cs:2043
static int lastMouseX
Definition Main.cs:643
static int worldMouseY
Definition Main.cs:629
static int mouseY
Definition Main.cs:601
static int worldMouseX
Definition Main.cs:615
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671
static void ServerLoopUpdateFrame()
Definition Netplay.cs:408
static void StopBroadCasting()
Definition Netplay.cs:397
static void UnloadAssets()
static void ActionPendingUnloadAssets(bool fromLowMemory=false)
static void TerminateAll()
static void Update()
static bool mousePresent
Definition Input.cs:188
static int height
Definition Screen.cs:28
static int width
Definition Screen.cs:17
static float deltaTime
Definition Time.cs:14
static void SetupPrimary()
static void LookForNewUsers()
static XNAUnityRunner.ForcedInputMode PrimaryInputMode
XNAWorldCameraSettings WorldCameraSettings
void ExecuteFrame(float timeDelta)
static Microsoft.Xna.Framework.Vector2 AdjustScreenPositionForWorld(Microsoft.Xna.Framework.Vector2 inputPosition)
void OnApplicationFocus(bool focus)
string GetNextScreenshotFilename()
static bool KeyboardModeLocked
Microsoft.Xna.Framework.Vector2 IncrementalBatchingOffset
XNAUnityRunner.ForcedInputMode ForcedInput
bool SplitscreenOrientationChanged
static global::UnityEngine.Vector3 LastMousePosition
static bool ControllerModeLocked
void OnApplicationPause(bool pause)
static global::UnityEngine.Vector3 MousePosition
global::UnityEngine.Vector3 lastMousePosition
static bool _renderingUI
bool lastFrameSplitHorizontal
static int ScreenWidth
static float GetMouseScrollDelta(bool ignoreEditor=false)
static Microsoft.Xna.Framework.Vector2 ScaleWorldDirectionForScreen(Microsoft.Xna.Framework.Vector2 inputPosition)
static int _lastUIFrame
static bool _mobileControllerLocked
static void SetupRenderingUI(bool renderingUI)
static Microsoft.Xna.Framework.Vector2 AdjustWorldForRealScreen(Microsoft.Xna.Framework.Vector2 inputPosition)
static Microsoft.Xna.Framework.Vector2 AdjustUIForRealScreen(Microsoft.Xna.Framework.Vector2 inputPosition)
static int _frame
static Microsoft.Xna.Framework.Vector2 ScaleScreenDirectionForWorld(Microsoft.Xna.Framework.Vector2 inputPosition)
static XNAUnityRunner.MouseStateBackup _uiMouseState
AnimationCurve FireAxisRemap
static XNAUnityRunner _instance
static bool MobileTouchLocked
static bool MobileKeyboardLocked
Texture2D WaterMask
float SimulatedCloudSyncTime
static XNAUnityRunner()
static bool MobileControllerLocked
static bool TouchModeLocked
void Application_lowMemory()
static Microsoft.Xna.Framework.Vector2 AdjustRealScreenForUI(Microsoft.Xna.Framework.Vector2 inputPosition)
static bool _mobileTouchLocked
static bool TouchInputKeyboardLocked
XNAUICameraSettings UICameraSettings
static Microsoft.Xna.Framework.Vector2 ScaleUIDirectionForRealScreen(Microsoft.Xna.Framework.Vector2 inputPosition)
static bool broadcastTest
static bool firstUpdate
static global::UnityEngine.Vector3 MousePositionReal
void SetMobileMouseMode(int mode)
static XNAUnityRunner.ForcedInputMode CurrentInputMode
static XNAUnityRunner.MouseStateBackup _worldMouseState
static bool GetMouseButtonUp(int index, bool ignoreEditor=false)
static bool GetMouseButton(int index, bool ignoreEditor=false)
static int DelayInputSwitch
void OnApplicationQuit()
static bool _mobileKeyboardLocked
static Microsoft.Xna.Framework.Vector2 AdjustWorldPositionForUI(Microsoft.Xna.Framework.Vector2 inputPosition)
static bool GetMouseButtonDown(int index, bool ignoreEditor=false)
static bool RenderingUI
static int ScreenHeight
Vector3(float x, float y, float z)
Definition Vector3.cs:156