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
Display.cs
Go to the documentation of this file.
1using System;
7
8namespace UnityEngine
9{
10 // Token: 0x02000071 RID: 113
12 [NativeHeader("Runtime/Graphics/DisplayManager.h")]
13 public class Display
14 {
15 // Token: 0x060001B9 RID: 441 RVA: 0x000047AC File Offset: 0x000029AC
16 internal Display()
17 {
18 }
19
20 // Token: 0x060001BA RID: 442 RVA: 0x000047C4 File Offset: 0x000029C4
25
26 // Token: 0x17000057 RID: 87
27 // (get) Token: 0x060001BB RID: 443 RVA: 0x000047E0 File Offset: 0x000029E0
28 public int renderingWidth
29 {
30 get
31 {
32 int num = 1;
34 if (num == 0)
35 {
36 }
37 throw new MissingMethodException();
38 }
39 }
40
41 // Token: 0x17000058 RID: 88
42 // (get) Token: 0x060001BC RID: 444 RVA: 0x00004800 File Offset: 0x00002A00
43 public int renderingHeight
44 {
45 get
46 {
47 int num = 1;
49 if (num == 0)
50 {
51 }
52 throw new MissingMethodException();
53 }
54 }
55
56 // Token: 0x17000059 RID: 89
57 // (get) Token: 0x060001BD RID: 445 RVA: 0x00004820 File Offset: 0x00002A20
58 public int systemWidth
59 {
60 get
61 {
62 int num = 1;
64 if (num == 0)
65 {
66 }
67 throw new MissingMethodException();
68 }
69 }
70
71 // Token: 0x1700005A RID: 90
72 // (get) Token: 0x060001BE RID: 446 RVA: 0x00004840 File Offset: 0x00002A40
73 public int systemHeight
74 {
75 get
76 {
77 int num = 1;
79 if (num == 0)
80 {
81 }
82 throw new MissingMethodException();
83 }
84 }
85
86 // Token: 0x060001BF RID: 447 RVA: 0x00004860 File Offset: 0x00002A60
91
92 // Token: 0x1700005B RID: 91
93 // (get) Token: 0x060001C0 RID: 448 RVA: 0x00004874 File Offset: 0x00002A74
94 public static Display main
95 {
96 get
97 {
98 /*
99An exception occurred when decompiling this method (060001C0)
100
101ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Display UnityEngine.Display::get_main()
102
103 ---> System.Exception: Basic block has to end with unconditional control flow.
104{
105 IL_0000:
106 brtrue(IL_0000, ldc.i4:bool(1))
107}
108
109 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
110 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
111 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
112 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
113 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
114 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
115 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
116 --- End of inner exception stack trace ---
117 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
118 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
119*/;
120 }
121 }
122
123 // Token: 0x060001C1 RID: 449 RVA: 0x00004884 File Offset: 0x00002A84
126 {
127 }
128
129 // Token: 0x060001C2 RID: 450 RVA: 0x00004898 File Offset: 0x00002A98
131 private static void FireDisplaysUpdated()
132 {
133 if (!true)
134 {
135 }
136 }
137
138 // Token: 0x060001C3 RID: 451 RVA: 0x000048AC File Offset: 0x00002AAC
139 [FreeFunction("UnityDisplayManager_DisplaySystemResolution")]
140 private static void GetSystemExtImpl(IntPtr nativeDisplay, [Out] int w, [Out] int h)
141 {
142 throw new MissingMethodException();
143 }
144
145 // Token: 0x060001C4 RID: 452 RVA: 0x000048C0 File Offset: 0x00002AC0
146 [FreeFunction("UnityDisplayManager_DisplayRenderingResolution")]
147 private static void GetRenderingExtImpl(IntPtr nativeDisplay, [Out] int w, [Out] int h)
148 {
149 throw new MissingMethodException();
150 }
151
152 // Token: 0x060001C5 RID: 453 RVA: 0x000048D4 File Offset: 0x00002AD4
153 [FreeFunction("UnityDisplayManager_RelativeMouseAt")]
154 private static int RelativeMouseAtImpl(int x, int y, [Out] int rx, [Out] int ry)
155 {
156 throw new MissingMethodException();
157 }
158
159 // Token: 0x060001C6 RID: 454 RVA: 0x000048E8 File Offset: 0x00002AE8
160 // Note: this type is marked as 'beforefieldinit'.
161 static Display()
162 {
163 }
164
165 // Token: 0x040002DD RID: 733
167
168 // Token: 0x040002DE RID: 734
169 public static Display[] displays;
170
171 // Token: 0x040002DF RID: 735
172 private static Display _mainDisplay;
173
174 // Token: 0x040002E0 RID: 736
176
177 // Token: 0x040002E1 RID: 737
181
182 // Token: 0x02000072 RID: 114
184 {
185 // Token: 0x060001C7 RID: 455 RVA: 0x00004900 File Offset: 0x00002B00
186 public DisplaysUpdatedDelegate(object @object, IntPtr method)
187 {
189 this.m_target = @object;
191 this.method_code = this;
192 }
193
194 // Token: 0x060001C8 RID: 456 RVA: 0x00004954 File Offset: 0x00002B54
195 public void Invoke()
196 {
199 IntPtr method = this.method;
200 }
201 }
202 }
203}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
DisplaysUpdatedDelegate(object @object, IntPtr method)
Definition Display.cs:186
static int RelativeMouseAtImpl(int x, int y, [Out] int rx, [Out] int ry)
Definition Display.cs:154
static Display _mainDisplay
Definition Display.cs:172
static Display.DisplaysUpdatedDelegate onDisplaysUpdated
Definition Display.cs:180
static void GetSystemExtImpl(IntPtr nativeDisplay, [Out] int w, [Out] int h)
Definition Display.cs:140
Display(IntPtr nativeDisplay)
Definition Display.cs:21
static void GetRenderingExtImpl(IntPtr nativeDisplay, [Out] int w, [Out] int h)
Definition Display.cs:147
static int m_ActiveEditorGameViewTarget
Definition Display.cs:175
static Vector3 RelativeMouseAt(Vector3 inputMouseCoordinates)
Definition Display.cs:87
static void RecreateDisplayList(IntPtr[] nativeDisplay)
Definition Display.cs:125
static Display[] displays
Definition Display.cs:169
static Display main
Definition Display.cs:95
static void FireDisplaysUpdated()
Definition Display.cs:131