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
DeviceVPPICalculator.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4// Token: 0x02000302 RID: 770
6{
7 // Token: 0x170001A0 RID: 416
8 // (get) Token: 0x060011D0 RID: 4560 RVA: 0x00057108 File Offset: 0x00055308
18
19 // Token: 0x060011D1 RID: 4561 RVA: 0x0005712C File Offset: 0x0005532C
20 private float GetDeviceDPI()
21 {
22 /*
23An exception occurred when decompiling this method (060011D1)
24
25ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single DeviceVPPICalculator::GetDeviceDPI()
26
27 ---> System.Exception: Basic block has to end with unconditional control flow.
28{
29 IL_0020:
30 stloc:float32(var_7_28, callgetter:float32(Screen::get_dpi))
31 stfld:float32(DeviceVPPICalculator::DeviceDPI, ldloc:DeviceVPPICalculator(this), ldloc:float32(var_4))
32 stfld:bool(DeviceVPPICalculator::DeviceDPISectup, ldloc:DeviceVPPICalculator(this), ldc.i4:bool(1))
33}
34
35 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
36 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
37 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
38 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
39 --- End of inner exception stack trace ---
40 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
41 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
42*/;
43 }
44
45 // Token: 0x170001A1 RID: 417
46 // (get) Token: 0x060011D2 RID: 4562 RVA: 0x00057174 File Offset: 0x00055374
48 {
49 get
50 {
51 /*
52An exception occurred when decompiling this method (060011D2)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect DeviceVPPICalculator::get_Viewport()
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 stloc:float32(var_0_0B, ldfld:float32(Rect::m_XMin, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](DeviceVPPICalculator::_viewport, ldloc:DeviceVPPICalculator(this))))
60 stloc:float32(var_1_17, ldfld:float32(Rect::m_YMin, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](DeviceVPPICalculator::_viewport, ldloc:DeviceVPPICalculator(this))))
61 stloc:float32(var_2_23, ldfld:float32(Rect::m_Width, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](DeviceVPPICalculator::_viewport, ldloc:DeviceVPPICalculator(this))))
62 stloc:float32(var_3_2F, ldfld:float32(Rect::m_Height, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](DeviceVPPICalculator::_viewport, ldloc:DeviceVPPICalculator(this))))
63}
64
65 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
66 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
67 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
68 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
69 --- End of inner exception stack trace ---
70 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
71 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
72*/;
73 }
74 }
75
76 // Token: 0x060011D3 RID: 4563 RVA: 0x000571B0 File Offset: 0x000553B0
77 public virtual void UpdateViewport(Rect newVeiwport)
78 {
79 if (!true)
80 {
81 }
82 }
83
84 // Token: 0x060011D4 RID: 4564 RVA: 0x000571C0 File Offset: 0x000553C0
85 public float GetDefaultVerticalResolution(bool safeRegion = false)
86 {
87 if (!true)
88 {
89 }
90 float deviceDPI = this.GetDeviceDPI();
91 float deviceDPI2 = this.GetDeviceDPI();
93 if (forceEMUEntry != null)
94 {
95 int height = forceEMUEntry.Height;
97 float height2 = viewportSafeRegion.height;
98 float dpi = this.DPI;
99 float height3 = viewportSafeRegion.height;
100 float num = this.PhysicalToResolution.Evaluate(height3);
101 if (forceEMUEntry == null)
102 {
103 }
104 if (forceEMUEntry == null)
105 {
106 }
107 }
108 int height4 = Screen.height;
110 while (forceEMUEntry2 != null)
111 {
112 }
113 float height5 = this.GetViewportSafeRegion().height;
114 while (forceEMUEntry2 != null)
115 {
116 }
117 throw new MissingMethodException();
118 }
119
120 // Token: 0x060011D5 RID: 4565 RVA: 0x00057254 File Offset: 0x00055454
121 protected void UpdatePixelScale(bool safeRegion = false)
122 {
123 bool isEditor = Application.isEditor;
125 float deviceDPI = this.GetDeviceDPI();
127 int height;
128 if (forceEMUEntry != null)
129 {
130 float dpi = forceEMUEntry.DPI;
131 this.DPI = dpi;
132 height = forceEMUEntry.Height;
133 return;
134 }
135 this.DPI = (float)height;
136 float height2 = this.GetViewportSafeRegion().height;
137 float dpi2 = this.DPI;
138 this.PhysicalHeight = (float)height;
139 if (forceEMUEntry == null)
140 {
141 }
142 bool vppioverridden = this.VPPIOverridden;
143 if (vppioverridden)
144 {
145 float vppi = this.VPPI;
146 return;
147 }
149 float physicalHeight = this.PhysicalHeight;
150 float num = physicalToResolution.Evaluate(height2);
151 float physicalHeight2 = this.PhysicalHeight;
153 float zoomScale = this._zoomScale;
154 float dpi3 = this.DPI;
156 }
157
158 // Token: 0x060011D6 RID: 4566 RVA: 0x00057364 File Offset: 0x00055564
160 {
161 /*
162An exception occurred when decompiling this method (060011D6)
163
164ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect DeviceVPPICalculator::GetDefaultSafeArea()
165
166 ---> System.Exception: Basic block has to end with unconditional control flow.
167{
168 IL_0015:
169 stloc:int32(var_4_1C, callgetter:int32(Screen::get_height))
170}
171
172 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
173 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
174 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
175 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
176 --- End of inner exception stack trace ---
177 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
178 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
179*/;
180 }
181
182 // Token: 0x060011D7 RID: 4567 RVA: 0x00057390 File Offset: 0x00055590
183 private bool IsSafeAreaValid()
184 {
185 /*
186An exception occurred when decompiling this method (060011D7)
187
188ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean DeviceVPPICalculator::IsSafeAreaValid()
189
190 ---> System.Exception: Basic block has to end with unconditional control flow.
191{
192 IL_0008:
193 stloc:int32(var_6_10, callgetter:int32(Screen::get_width))
194 stloc:int32(var_9_1A, callgetter:int32(Screen::get_width))
195 stloc:int32(var_12_24, callgetter:int32(Screen::get_width))
196 stloc:int32(var_16_2E, callgetter:int32(Screen::get_height))
197 stloc:int32(var_19_38, callgetter:int32(Screen::get_height))
198 stloc:int32(var_22_42, callgetter:int32(Screen::get_height))
199}
200
201 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
202 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
203 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
204 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
205 --- End of inner exception stack trace ---
206 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
207 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
208*/;
209 }
210
211 // Token: 0x060011D8 RID: 4568 RVA: 0x000573E8 File Offset: 0x000555E8
213 {
214 if (!true)
215 {
216 }
217 int width = Screen.width;
218 int height = Screen.height;
219 int width2 = Screen.width;
220 int height2 = Screen.height;
221 Rect safeArea = this.GetSafeArea();
222 float xMin = safeArea.xMin;
223 float xMin2 = safeArea.xMin;
224 float xMax = safeArea.xMax;
225 float xMax2 = safeArea.xMax;
226 float yMin = safeArea.yMin;
227 float yMin2 = safeArea.yMin;
228 float yMax = safeArea.yMax;
229 float yMax2 = safeArea.yMax;
230 return safeArea;
231 }
232
233 // Token: 0x060011D9 RID: 4569 RVA: 0x00057470 File Offset: 0x00055670
235 {
236 /*
237An exception occurred when decompiling this method (060011D9)
238
239ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect DeviceVPPICalculator::GetSafeArea()
240
241 ---> System.Exception: Basic block has to end with unconditional control flow.
242{
243 IL_000A:
244 stloc:int32(var_4_11, callgetter:int32(Screen::get_width))
245 stloc:int32(var_7_1B, callgetter:int32(Screen::get_width))
246 stloc:int32(var_10_25, callgetter:int32(Screen::get_height))
247 stloc:int32(var_13_2F, callgetter:int32(Screen::get_height))
248 stloc:Preferences(var_15_39, callgetter:Preferences(Main::get_Configuration))
249 stloc:Preferences(var_18_43, callgetter:Preferences(Main::get_Configuration))
250 stloc:Preferences(var_21_4D, callgetter:Preferences(Main::get_Configuration))
251 stloc:Preferences(var_24_57, callgetter:Preferences(Main::get_Configuration))
252 stloc:int32(var_28_61, callgetter:int32(Screen::get_width))
253 stloc:int32(var_31_6B, callgetter:int32(Screen::get_width))
254 stloc:int32(var_34_75, callgetter:int32(Screen::get_height))
255 stloc:int32(var_37_7F, callgetter:int32(Screen::get_height))
256 stloc:Rect(var_39_87, call:Rect(DeviceVPPICalculator::GetDefaultSafeArea, ldloc:DeviceVPPICalculator(this)))
257 stloc:DeviceOrientation(var_41_91, callgetter:DeviceOrientation(Input::get_deviceOrientation))
258 stfld:DeviceOrientation(DeviceVPPICalculator::_cachedOrientation, ldloc:DeviceVPPICalculator(this), ldc.i4:DeviceOrientation(3))
259 stfld:DeviceOrientation(DeviceVPPICalculator::_cachedOrientation, ldloc:DeviceVPPICalculator(this), ldc.i4:DeviceOrientation(4))
260 stloc:DeviceOrientation(var_42_A7, ldfld:DeviceOrientation(DeviceVPPICalculator::_cachedOrientation, ldloc:DeviceVPPICalculator(this)))
261 stloc:int32(var_44_B1, callgetter:int32(Screen::get_width))
262}
263
264 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
265 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
266 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
267 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
268 --- End of inner exception stack trace ---
269 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
270 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
271*/;
272 }
273
274 // Token: 0x060011DA RID: 4570 RVA: 0x00057530 File Offset: 0x00055730
275 public void ResetSafeArea()
276 {
278 if (!true)
279 {
280 }
281 }
282
283 // Token: 0x060011DB RID: 4571 RVA: 0x00057548 File Offset: 0x00055748
284 public void SetSafeArea(Rect area)
285 {
286 int width = Screen.width;
287 int width2 = Screen.width;
288 int width3 = Screen.width;
289 int height = Screen.height;
290 int height2 = Screen.height;
291 int height3 = Screen.height;
293 }
294
295 // Token: 0x060011DC RID: 4572 RVA: 0x000575D4 File Offset: 0x000557D4
297 {
299 if (forceEMUEntry != null)
300 {
301 if (forceEMUEntry == null)
302 {
303 }
304 int width = Screen.width;
306 int width2 = forceEMUEntry2.Width;
307 if (forceEMUEntry2 == null)
308 {
309 }
310 int height = Screen.height;
312 int height2 = forceEMUEntry3.Height;
313 int allowedPlatforms = forceEMUEntry3.AllowedPlatforms;
314 if (this._forceEMUEntry != null)
315 {
316 }
317 }
318 }
319
320 // Token: 0x060011DD RID: 4573 RVA: 0x00057634 File Offset: 0x00055834
327
328 // Token: 0x170001A2 RID: 418
329 // (get) Token: 0x060011DE RID: 4574 RVA: 0x00057658 File Offset: 0x00055858
330 // (set) Token: 0x060011DF RID: 4575 RVA: 0x0005766C File Offset: 0x0005586C
331 public float ZoomScale
332 {
333 get
334 {
335 /*
336An exception occurred when decompiling this method (060011DE)
337
338ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single DeviceVPPICalculator::get_ZoomScale()
339
340 ---> System.Exception: Basic block has to end with unconditional control flow.
341{
342 Block_0:
343 stloc:float32(var_0_06, ldfld:float32(DeviceVPPICalculator::_zoomScale, ldloc:DeviceVPPICalculator(this)))
344}
345
346 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
347 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
348 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
349 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
350 --- End of inner exception stack trace ---
351 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
352 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
353*/;
354 }
355 set
356 {
357 }
358 }
359
360 // Token: 0x060011E0 RID: 4576 RVA: 0x0005767C File Offset: 0x0005587C
362 {
363 }
364
365 // Token: 0x060011E1 RID: 4577 RVA: 0x000576B4 File Offset: 0x000558B4
366 // Note: this type is marked as 'beforefieldinit'.
368 {
369 }
370
371 // Token: 0x04002153 RID: 8531
373
374 // Token: 0x04002154 RID: 8532
375 private bool DeviceDPISectup;
376
377 // Token: 0x04002155 RID: 8533
378 private float DeviceDPI;
379
380 // Token: 0x04002156 RID: 8534
381 private static float DefaultResolution;
382
383 // Token: 0x04002157 RID: 8535
384 protected Rect _viewport;
385
386 // Token: 0x04002158 RID: 8536
388
389 // Token: 0x04002159 RID: 8537
391
392 // Token: 0x0400215A RID: 8538
393 public float PhysicalHeight;
394
395 // Token: 0x0400215B RID: 8539
396 public float VPPI;
397
398 // Token: 0x0400215C RID: 8540
399 public float DPI;
400
401 // Token: 0x0400215D RID: 8541
402 public float PixelScale = (float)16256;
403
404 // Token: 0x0400215E RID: 8542
405 public bool VPPIOverridden;
406
407 // Token: 0x0400215F RID: 8543
408 public static Rect SafeArea;
409
410 // Token: 0x04002160 RID: 8544
411 private float _zoomScale = (float)16256;
412
413 // Token: 0x04002161 RID: 8545
414 private static float DefaultPhysicalHeight;
415
416 // Token: 0x04002162 RID: 8546
418
419 // Token: 0x04002163 RID: 8547
421
422 // Token: 0x02000303 RID: 771
424 {
425 // Token: 0x060011E2 RID: 4578 RVA: 0x000576C4 File Offset: 0x000558C4
426 public EditorMobileEmuEntry(string id, int width, int height, float dpi, int allowedPlatforms = 65535)
427 {
428 this.Width = width;
429 this.DPI = (float)height;
430 this.Id = id;
432 }
433
434 // Token: 0x060011E3 RID: 4579 RVA: 0x000576F4 File Offset: 0x000558F4
435 public EditorMobileEmuEntry(string id, int width, int height, float dpi, Rect safeRegion, int allowedPlatforms = 65535)
436 {
437 this.Id = id;
438 this.Width = width;
439 this.DPI = (float)height;
441 }
442
443 // Token: 0x04002164 RID: 8548
444 public readonly string Id;
445
446 // Token: 0x04002165 RID: 8549
447 public readonly int Width;
448
449 // Token: 0x04002166 RID: 8550
450 public readonly int Height;
451
452 // Token: 0x04002167 RID: 8551
453 public readonly float DPI;
454
455 // Token: 0x04002168 RID: 8552
457
458 // Token: 0x04002169 RID: 8553
460 }
461}
class f__AnonymousType0<< Count > j__TPar
EditorMobileEmuEntry(string id, int width, int height, float dpi, Rect safeRegion, int allowedPlatforms=65535)
EditorMobileEmuEntry(string id, int width, int height, float dpi, int allowedPlatforms=65535)
void OverrideVerticalResolution(int verticalResolution)
DeviceOrientation deviceOrientation
virtual void UpdateViewport(Rect newVeiwport)
DeviceOrientation _cachedOrientation
AnimationCurve PhysicalToResolution
void UpdatePixelScale(bool safeRegion=false)
AnimationCurve PhysicalToVPPICurve
DeviceVPPICalculator.EditorMobileEmuEntry _forceEMUEntry
float GetDefaultVerticalResolution(bool safeRegion=false)
DeviceVPPICalculator.EditorMobileEmuEntry[] MobileResolutionEntries
float Evaluate(float time)
static DeviceOrientation deviceOrientation
Definition Input.cs:221
static int height
Definition Screen.cs:28
static int width
Definition Screen.cs:17
float height
Definition Rect.cs:175