QFramework.Device.cpp 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132
  1. #include "il2cpp-config.h"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <cstring>
  8. #include <string.h>
  9. #include <stdio.h>
  10. #include <cmath>
  11. #include <limits>
  12. #include <assert.h>
  13. #include <stdint.h>
  14. #include "codegen/il2cpp-codegen.h"
  15. #include "il2cpp-object-internals.h"
  16. // QFramework.DeviceUtil
  17. struct DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8;
  18. // System.Char[]
  19. struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
  20. // System.Collections.Generic.IEnumerable`1<System.Int32>
  21. struct IEnumerable_1_t1AE8F03F101BA7578AF3A97EF1EBE8DB5FF31215;
  22. // System.Int32[]
  23. struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
  24. // System.String
  25. struct String_t;
  26. // System.Void
  27. struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
  28. IL2CPP_EXTERN_C RuntimeClass* DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var;
  29. IL2CPP_EXTERN_C RuntimeClass* Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var;
  30. IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98____AEC0264044744C83DB6479B80C934064F2B2A8AD_0_FieldInfo_var;
  31. IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98____CE2667BC180079AC98C7E92254F6566C74160C23_1_FieldInfo_var;
  32. IL2CPP_EXTERN_C String_t* _stringLiteral0F8D25735FF76A079D6C88C1E05650B7DD4F02EE;
  33. IL2CPP_EXTERN_C String_t* _stringLiteralE4BBE5B7A4C1EB55652965AEE885DD59BD2EE7F4;
  34. IL2CPP_EXTERN_C const RuntimeMethod* Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D_RuntimeMethod_var;
  35. IL2CPP_EXTERN_C const uint32_t DeviceUtil_GetOSSuffix_mDB4896E04FBF808A23DCCCEE468F2A4DBA2DA171_MetadataUsageId;
  36. IL2CPP_EXTERN_C const uint32_t DeviceUtil_IsAndroidPad_m16B4C8C16FDBBDFB3ED1D7F78750BBF4BDC8B900_MetadataUsageId;
  37. IL2CPP_EXTERN_C const uint32_t DeviceUtil_IsAndroidPhone160_m223D12C4A697419C4E34F7FCD0C48C1611BE0F2F_MetadataUsageId;
  38. IL2CPP_EXTERN_C const uint32_t DeviceUtil_IsAndroidPhone167_m8B472B53BFE002643662EDE99EBA0374E82A9DD0_MetadataUsageId;
  39. IL2CPP_EXTERN_C const uint32_t DeviceUtil_IsAndroidPhone_m0EFF8EEC1C4CDD12058F92C1D548AD1D106B3F72_MetadataUsageId;
  40. IL2CPP_EXTERN_C const uint32_t DeviceUtil_IsIPad_m7E8F7DBAACBE05687B1D7FC3DF2C6BA667806C3C_MetadataUsageId;
  41. IL2CPP_EXTERN_C const uint32_t DeviceUtil_IsIPhone_mDFF4211BBF9F5461CD4C17F680BA708EAD4BB4F6_MetadataUsageId;
  42. IL2CPP_EXTERN_C const uint32_t DeviceUtil__cctor_m9C6B5054BA3E08A59BF072E9FC02B496FECA6C11_MetadataUsageId;
  43. struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
  44. IL2CPP_EXTERN_C_BEGIN
  45. IL2CPP_EXTERN_C_END
  46. #ifdef __clang__
  47. #pragma clang diagnostic push
  48. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  49. #pragma clang diagnostic ignored "-Wunused-variable"
  50. #endif
  51. // <Module>
  52. struct U3CModuleU3E_tFAFCCA05F90B00FBBE1B45CF6970C73CBB906CDC
  53. {
  54. public:
  55. public:
  56. };
  57. // System.Object
  58. // QFramework.DeviceUtil
  59. struct DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8 : public RuntimeObject
  60. {
  61. public:
  62. public:
  63. };
  64. struct DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_StaticFields
  65. {
  66. public:
  67. // System.Int32[] QFramework.DeviceUtil::IPhoneIDs
  68. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___IPhoneIDs_0;
  69. // System.Int32[] QFramework.DeviceUtil::IPadIDs
  70. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___IPadIDs_1;
  71. public:
  72. inline static int32_t get_offset_of_IPhoneIDs_0() { return static_cast<int32_t>(offsetof(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_StaticFields, ___IPhoneIDs_0)); }
  73. inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_IPhoneIDs_0() const { return ___IPhoneIDs_0; }
  74. inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_IPhoneIDs_0() { return &___IPhoneIDs_0; }
  75. inline void set_IPhoneIDs_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
  76. {
  77. ___IPhoneIDs_0 = value;
  78. Il2CppCodeGenWriteBarrier((void**)(&___IPhoneIDs_0), (void*)value);
  79. }
  80. inline static int32_t get_offset_of_IPadIDs_1() { return static_cast<int32_t>(offsetof(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_StaticFields, ___IPadIDs_1)); }
  81. inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_IPadIDs_1() const { return ___IPadIDs_1; }
  82. inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_IPadIDs_1() { return &___IPadIDs_1; }
  83. inline void set_IPadIDs_1(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
  84. {
  85. ___IPadIDs_1 = value;
  86. Il2CppCodeGenWriteBarrier((void**)(&___IPadIDs_1), (void*)value);
  87. }
  88. };
  89. struct Il2CppArrayBounds;
  90. // System.Array
  91. // System.String
  92. struct String_t : public RuntimeObject
  93. {
  94. public:
  95. // System.Int32 System.String::m_stringLength
  96. int32_t ___m_stringLength_0;
  97. // System.Char System.String::m_firstChar
  98. Il2CppChar ___m_firstChar_1;
  99. public:
  100. inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
  101. inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
  102. inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
  103. inline void set_m_stringLength_0(int32_t value)
  104. {
  105. ___m_stringLength_0 = value;
  106. }
  107. inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
  108. inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
  109. inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
  110. inline void set_m_firstChar_1(Il2CppChar value)
  111. {
  112. ___m_firstChar_1 = value;
  113. }
  114. };
  115. struct String_t_StaticFields
  116. {
  117. public:
  118. // System.String System.String::Empty
  119. String_t* ___Empty_5;
  120. public:
  121. inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
  122. inline String_t* get_Empty_5() const { return ___Empty_5; }
  123. inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
  124. inline void set_Empty_5(String_t* value)
  125. {
  126. ___Empty_5 = value;
  127. Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
  128. }
  129. };
  130. // System.ValueType
  131. struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
  132. {
  133. public:
  134. public:
  135. };
  136. // Native definition for P/Invoke marshalling of System.ValueType
  137. struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
  138. {
  139. };
  140. // Native definition for COM marshalling of System.ValueType
  141. struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
  142. {
  143. };
  144. // <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D52
  145. struct __StaticArrayInitTypeSizeU3D52_tBAA80D14F7A76AAE6D9C536D4D090C812455780A
  146. {
  147. public:
  148. union
  149. {
  150. struct
  151. {
  152. union
  153. {
  154. };
  155. };
  156. uint8_t __StaticArrayInitTypeSizeU3D52_tBAA80D14F7A76AAE6D9C536D4D090C812455780A__padding[52];
  157. };
  158. public:
  159. };
  160. // <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D68
  161. struct __StaticArrayInitTypeSizeU3D68_t1F4B704ADFA352E4B1EB84EA906CAC4D02782A9E
  162. {
  163. public:
  164. union
  165. {
  166. struct
  167. {
  168. union
  169. {
  170. };
  171. };
  172. uint8_t __StaticArrayInitTypeSizeU3D68_t1F4B704ADFA352E4B1EB84EA906CAC4D02782A9E__padding[68];
  173. };
  174. public:
  175. };
  176. // System.Boolean
  177. struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
  178. {
  179. public:
  180. // System.Boolean System.Boolean::m_value
  181. bool ___m_value_0;
  182. public:
  183. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
  184. inline bool get_m_value_0() const { return ___m_value_0; }
  185. inline bool* get_address_of_m_value_0() { return &___m_value_0; }
  186. inline void set_m_value_0(bool value)
  187. {
  188. ___m_value_0 = value;
  189. }
  190. };
  191. struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
  192. {
  193. public:
  194. // System.String System.Boolean::TrueString
  195. String_t* ___TrueString_5;
  196. // System.String System.Boolean::FalseString
  197. String_t* ___FalseString_6;
  198. public:
  199. inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
  200. inline String_t* get_TrueString_5() const { return ___TrueString_5; }
  201. inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
  202. inline void set_TrueString_5(String_t* value)
  203. {
  204. ___TrueString_5 = value;
  205. Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
  206. }
  207. inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
  208. inline String_t* get_FalseString_6() const { return ___FalseString_6; }
  209. inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
  210. inline void set_FalseString_6(String_t* value)
  211. {
  212. ___FalseString_6 = value;
  213. Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
  214. }
  215. };
  216. // System.Enum
  217. struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF
  218. {
  219. public:
  220. public:
  221. };
  222. struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields
  223. {
  224. public:
  225. // System.Char[] System.Enum::enumSeperatorCharArray
  226. CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0;
  227. public:
  228. inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); }
  229. inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
  230. inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
  231. inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
  232. {
  233. ___enumSeperatorCharArray_0 = value;
  234. Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
  235. }
  236. };
  237. // Native definition for P/Invoke marshalling of System.Enum
  238. struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke
  239. {
  240. };
  241. // Native definition for COM marshalling of System.Enum
  242. struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com
  243. {
  244. };
  245. // System.Int32
  246. struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
  247. {
  248. public:
  249. // System.Int32 System.Int32::m_value
  250. int32_t ___m_value_0;
  251. public:
  252. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
  253. inline int32_t get_m_value_0() const { return ___m_value_0; }
  254. inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
  255. inline void set_m_value_0(int32_t value)
  256. {
  257. ___m_value_0 = value;
  258. }
  259. };
  260. // System.IntPtr
  261. struct IntPtr_t
  262. {
  263. public:
  264. // System.Void* System.IntPtr::m_value
  265. void* ___m_value_0;
  266. public:
  267. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
  268. inline void* get_m_value_0() const { return ___m_value_0; }
  269. inline void** get_address_of_m_value_0() { return &___m_value_0; }
  270. inline void set_m_value_0(void* value)
  271. {
  272. ___m_value_0 = value;
  273. }
  274. };
  275. struct IntPtr_t_StaticFields
  276. {
  277. public:
  278. // System.IntPtr System.IntPtr::Zero
  279. intptr_t ___Zero_1;
  280. public:
  281. inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
  282. inline intptr_t get_Zero_1() const { return ___Zero_1; }
  283. inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
  284. inline void set_Zero_1(intptr_t value)
  285. {
  286. ___Zero_1 = value;
  287. }
  288. };
  289. // System.Single
  290. struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1
  291. {
  292. public:
  293. // System.Single System.Single::m_value
  294. float ___m_value_0;
  295. public:
  296. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); }
  297. inline float get_m_value_0() const { return ___m_value_0; }
  298. inline float* get_address_of_m_value_0() { return &___m_value_0; }
  299. inline void set_m_value_0(float value)
  300. {
  301. ___m_value_0 = value;
  302. }
  303. };
  304. // System.Void
  305. struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
  306. {
  307. public:
  308. union
  309. {
  310. struct
  311. {
  312. };
  313. uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
  314. };
  315. public:
  316. };
  317. // <PrivateImplementationDetails>
  318. struct U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98 : public RuntimeObject
  319. {
  320. public:
  321. public:
  322. };
  323. struct U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98_StaticFields
  324. {
  325. public:
  326. // <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D52 <PrivateImplementationDetails>::AEC0264044744C83DB6479B80C934064F2B2A8AD
  327. __StaticArrayInitTypeSizeU3D52_tBAA80D14F7A76AAE6D9C536D4D090C812455780A ___AEC0264044744C83DB6479B80C934064F2B2A8AD_0;
  328. // <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D68 <PrivateImplementationDetails>::CE2667BC180079AC98C7E92254F6566C74160C23
  329. __StaticArrayInitTypeSizeU3D68_t1F4B704ADFA352E4B1EB84EA906CAC4D02782A9E ___CE2667BC180079AC98C7E92254F6566C74160C23_1;
  330. public:
  331. inline static int32_t get_offset_of_AEC0264044744C83DB6479B80C934064F2B2A8AD_0() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98_StaticFields, ___AEC0264044744C83DB6479B80C934064F2B2A8AD_0)); }
  332. inline __StaticArrayInitTypeSizeU3D52_tBAA80D14F7A76AAE6D9C536D4D090C812455780A get_AEC0264044744C83DB6479B80C934064F2B2A8AD_0() const { return ___AEC0264044744C83DB6479B80C934064F2B2A8AD_0; }
  333. inline __StaticArrayInitTypeSizeU3D52_tBAA80D14F7A76AAE6D9C536D4D090C812455780A * get_address_of_AEC0264044744C83DB6479B80C934064F2B2A8AD_0() { return &___AEC0264044744C83DB6479B80C934064F2B2A8AD_0; }
  334. inline void set_AEC0264044744C83DB6479B80C934064F2B2A8AD_0(__StaticArrayInitTypeSizeU3D52_tBAA80D14F7A76AAE6D9C536D4D090C812455780A value)
  335. {
  336. ___AEC0264044744C83DB6479B80C934064F2B2A8AD_0 = value;
  337. }
  338. inline static int32_t get_offset_of_CE2667BC180079AC98C7E92254F6566C74160C23_1() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98_StaticFields, ___CE2667BC180079AC98C7E92254F6566C74160C23_1)); }
  339. inline __StaticArrayInitTypeSizeU3D68_t1F4B704ADFA352E4B1EB84EA906CAC4D02782A9E get_CE2667BC180079AC98C7E92254F6566C74160C23_1() const { return ___CE2667BC180079AC98C7E92254F6566C74160C23_1; }
  340. inline __StaticArrayInitTypeSizeU3D68_t1F4B704ADFA352E4B1EB84EA906CAC4D02782A9E * get_address_of_CE2667BC180079AC98C7E92254F6566C74160C23_1() { return &___CE2667BC180079AC98C7E92254F6566C74160C23_1; }
  341. inline void set_CE2667BC180079AC98C7E92254F6566C74160C23_1(__StaticArrayInitTypeSizeU3D68_t1F4B704ADFA352E4B1EB84EA906CAC4D02782A9E value)
  342. {
  343. ___CE2667BC180079AC98C7E92254F6566C74160C23_1 = value;
  344. }
  345. };
  346. // System.RuntimeFieldHandle
  347. struct RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF
  348. {
  349. public:
  350. // System.IntPtr System.RuntimeFieldHandle::value
  351. intptr_t ___value_0;
  352. public:
  353. inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF, ___value_0)); }
  354. inline intptr_t get_value_0() const { return ___value_0; }
  355. inline intptr_t* get_address_of_value_0() { return &___value_0; }
  356. inline void set_value_0(intptr_t value)
  357. {
  358. ___value_0 = value;
  359. }
  360. };
  361. // UnityEngine.RuntimePlatform
  362. struct RuntimePlatform_tD5F5737C1BBBCBB115EB104DF2B7876387E80132
  363. {
  364. public:
  365. // System.Int32 UnityEngine.RuntimePlatform::value__
  366. int32_t ___value___2;
  367. public:
  368. inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RuntimePlatform_tD5F5737C1BBBCBB115EB104DF2B7876387E80132, ___value___2)); }
  369. inline int32_t get_value___2() const { return ___value___2; }
  370. inline int32_t* get_address_of_value___2() { return &___value___2; }
  371. inline void set_value___2(int32_t value)
  372. {
  373. ___value___2 = value;
  374. }
  375. };
  376. // UnityEngine.iOS.DeviceGeneration
  377. struct DeviceGeneration_tA4F1462D32E1A9FA5BC81B6ECA49B3763FF7FC92
  378. {
  379. public:
  380. // System.Int32 UnityEngine.iOS.DeviceGeneration::value__
  381. int32_t ___value___2;
  382. public:
  383. inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DeviceGeneration_tA4F1462D32E1A9FA5BC81B6ECA49B3763FF7FC92, ___value___2)); }
  384. inline int32_t get_value___2() const { return ___value___2; }
  385. inline int32_t* get_address_of_value___2() { return &___value___2; }
  386. inline void set_value___2(int32_t value)
  387. {
  388. ___value___2 = value;
  389. }
  390. };
  391. #ifdef __clang__
  392. #pragma clang diagnostic pop
  393. #endif
  394. // System.Int32[]
  395. struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83 : public RuntimeArray
  396. {
  397. public:
  398. ALIGN_FIELD (8) int32_t m_Items[1];
  399. public:
  400. inline int32_t GetAt(il2cpp_array_size_t index) const
  401. {
  402. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  403. return m_Items[index];
  404. }
  405. inline int32_t* GetAddressAt(il2cpp_array_size_t index)
  406. {
  407. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  408. return m_Items + index;
  409. }
  410. inline void SetAt(il2cpp_array_size_t index, int32_t value)
  411. {
  412. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  413. m_Items[index] = value;
  414. }
  415. inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const
  416. {
  417. return m_Items[index];
  418. }
  419. inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
  420. {
  421. return m_Items + index;
  422. }
  423. inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value)
  424. {
  425. m_Items[index] = value;
  426. }
  427. };
  428. // System.Boolean System.Linq.Enumerable::Contains<System.Int32>(System.Collections.Generic.IEnumerable`1<!!0>,!!0)
  429. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D_gshared (RuntimeObject* ___source0, int32_t ___value1, const RuntimeMethod* method);
  430. // System.Void UnityEngine.Handheld::Vibrate()
  431. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Handheld_Vibrate_mA83C229AF2018DCA33714AE61271EF8B87B16277 (const RuntimeMethod* method);
  432. // UnityEngine.RuntimePlatform UnityEngine.Application::get_platform()
  433. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Application_get_platform_m6AFFFF3B077F4D5CA1F71CF14ABA86A83FC71672 (const RuntimeMethod* method);
  434. // System.Int32 UnityEngine.Screen::get_height()
  435. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150 (const RuntimeMethod* method);
  436. // System.Int32 UnityEngine.Screen::get_width()
  437. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3 (const RuntimeMethod* method);
  438. // System.Int32 QFramework.DeviceUtil::GetDeviceID()
  439. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DeviceUtil_GetDeviceID_m55D9D90785CBA0BB88A0D82098810140EF6F4DF0 (const RuntimeMethod* method);
  440. // System.Boolean System.Linq.Enumerable::Contains<System.Int32>(System.Collections.Generic.IEnumerable`1<!!0>,!!0)
  441. inline bool Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D (RuntimeObject* ___source0, int32_t ___value1, const RuntimeMethod* method)
  442. {
  443. return (( bool (*) (RuntimeObject*, int32_t, const RuntimeMethod*))Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D_gshared)(___source0, ___value1, method);
  444. }
  445. // UnityEngine.iOS.DeviceGeneration UnityEngine.iOS.Device::get_generation()
  446. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Device_get_generation_m1B212A72D6BB18EAED4D65DA89702D69A22A3F99 (const RuntimeMethod* method);
  447. // System.Boolean QFramework.DeviceUtil::IsApplePlatform()
  448. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsApplePlatform_mA2A93FB1250869E386622D8D165597E5907EFF19 (const RuntimeMethod* method);
  449. // System.Boolean QFramework.DeviceUtil::IsAndroidPlatform()
  450. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsAndroidPlatform_m72E7D6A0B3A78D422ADCB65EB8E09D10575FC77D (const RuntimeMethod* method);
  451. // System.Boolean QFramework.DeviceUtil::PadResolution()
  452. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_PadResolution_mC82D465CAA78B4746BE42548619900917B4EBD08 (const RuntimeMethod* method);
  453. // System.Boolean QFramework.DeviceUtil::PhoneResolution()
  454. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_PhoneResolution_m2D233BEF979AAFC28C374A3673A348B73D9E48D8 (const RuntimeMethod* method);
  455. // System.Boolean QFramework.DeviceUtil::Phone167Resolution()
  456. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_Phone167Resolution_m7C545D1DA6016B1C03F1DD96BE2CC5A6A9C696B6 (const RuntimeMethod* method);
  457. // System.Boolean QFramework.DeviceUtil::Phone160Resolution()
  458. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_Phone160Resolution_m1558920C784487AD95BB565E5953B9E29E8D1892 (const RuntimeMethod* method);
  459. // System.Void System.Object::.ctor()
  460. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0 (RuntimeObject * __this, const RuntimeMethod* method);
  461. // System.Void System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(System.Array,System.RuntimeFieldHandle)
  462. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A (RuntimeArray * ___array0, RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF ___fldHandle1, const RuntimeMethod* method);
  463. #ifdef __clang__
  464. #pragma clang diagnostic push
  465. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  466. #pragma clang diagnostic ignored "-Wunused-variable"
  467. #endif
  468. #ifdef __clang__
  469. #pragma clang diagnostic pop
  470. #endif
  471. #ifdef __clang__
  472. #pragma clang diagnostic push
  473. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  474. #pragma clang diagnostic ignored "-Wunused-variable"
  475. #endif
  476. #ifdef __clang__
  477. #pragma clang diagnostic pop
  478. #endif
  479. #ifdef __clang__
  480. #pragma clang diagnostic push
  481. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  482. #pragma clang diagnostic ignored "-Wunused-variable"
  483. #endif
  484. #ifdef __clang__
  485. #pragma clang diagnostic pop
  486. #endif
  487. #ifdef __clang__
  488. #pragma clang diagnostic push
  489. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  490. #pragma clang diagnostic ignored "-Wunused-variable"
  491. #endif
  492. #ifdef __clang__
  493. #pragma clang diagnostic pop
  494. #endif
  495. #ifdef __clang__
  496. #pragma clang diagnostic push
  497. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  498. #pragma clang diagnostic ignored "-Wunused-variable"
  499. #endif
  500. // System.Void QFramework.DeviceUtil::Vibrate()
  501. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DeviceUtil_Vibrate_m099A2AD0BBBBF9D2C00AE2BEDBD513EE9692500C (const RuntimeMethod* method)
  502. {
  503. {
  504. // Handheld.Vibrate();
  505. Handheld_Vibrate_mA83C229AF2018DCA33714AE61271EF8B87B16277(/*hidden argument*/NULL);
  506. // }
  507. return;
  508. }
  509. }
  510. // System.Boolean QFramework.DeviceUtil::IsApplePlatform()
  511. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsApplePlatform_mA2A93FB1250869E386622D8D165597E5907EFF19 (const RuntimeMethod* method)
  512. {
  513. {
  514. // return RuntimePlatform.IPhonePlayer == Application.platform
  515. // || RuntimePlatform.OSXEditor == Application.platform
  516. // || RuntimePlatform.OSXPlayer == Application.platform;
  517. int32_t L_0 = Application_get_platform_m6AFFFF3B077F4D5CA1F71CF14ABA86A83FC71672(/*hidden argument*/NULL);
  518. if ((((int32_t)8) == ((int32_t)L_0)))
  519. {
  520. goto IL_0018;
  521. }
  522. }
  523. {
  524. int32_t L_1 = Application_get_platform_m6AFFFF3B077F4D5CA1F71CF14ABA86A83FC71672(/*hidden argument*/NULL);
  525. if (!L_1)
  526. {
  527. goto IL_0018;
  528. }
  529. }
  530. {
  531. int32_t L_2 = Application_get_platform_m6AFFFF3B077F4D5CA1F71CF14ABA86A83FC71672(/*hidden argument*/NULL);
  532. return (bool)((((int32_t)1) == ((int32_t)L_2))? 1 : 0);
  533. }
  534. IL_0018:
  535. {
  536. return (bool)1;
  537. }
  538. }
  539. // System.Boolean QFramework.DeviceUtil::IsAndroidPlatform()
  540. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsAndroidPlatform_m72E7D6A0B3A78D422ADCB65EB8E09D10575FC77D (const RuntimeMethod* method)
  541. {
  542. {
  543. // return RuntimePlatform.Android == Application.platform;
  544. int32_t L_0 = Application_get_platform_m6AFFFF3B077F4D5CA1F71CF14ABA86A83FC71672(/*hidden argument*/NULL);
  545. return (bool)((((int32_t)((int32_t)11)) == ((int32_t)L_0))? 1 : 0);
  546. }
  547. }
  548. // System.Boolean QFramework.DeviceUtil::IsEditor()
  549. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsEditor_m8C57834C56208EDE5B8D429636B88CE4FCD566D4 (const RuntimeMethod* method)
  550. {
  551. {
  552. // return RuntimePlatform.OSXEditor == Application.platform
  553. // || RuntimePlatform.WindowsEditor == Application.platform;
  554. int32_t L_0 = Application_get_platform_m6AFFFF3B077F4D5CA1F71CF14ABA86A83FC71672(/*hidden argument*/NULL);
  555. if (!L_0)
  556. {
  557. goto IL_0010;
  558. }
  559. }
  560. {
  561. int32_t L_1 = Application_get_platform_m6AFFFF3B077F4D5CA1F71CF14ABA86A83FC71672(/*hidden argument*/NULL);
  562. return (bool)((((int32_t)7) == ((int32_t)L_1))? 1 : 0);
  563. }
  564. IL_0010:
  565. {
  566. return (bool)1;
  567. }
  568. }
  569. // System.Boolean QFramework.DeviceUtil::PhoneResolution()
  570. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_PhoneResolution_m2D233BEF979AAFC28C374A3673A348B73D9E48D8 (const RuntimeMethod* method)
  571. {
  572. float V_0 = 0.0f;
  573. float G_B3_0 = 0.0f;
  574. {
  575. // float aspect = Screen.height > Screen.width ? (float)Screen.height / Screen.width : (float)Screen.width / Screen.height;
  576. int32_t L_0 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  577. int32_t L_1 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  578. if ((((int32_t)L_0) > ((int32_t)L_1)))
  579. {
  580. goto IL_001b;
  581. }
  582. }
  583. {
  584. int32_t L_2 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  585. int32_t L_3 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  586. G_B3_0 = ((float)((float)(((float)((float)L_2)))/(float)(((float)((float)L_3)))));
  587. goto IL_0028;
  588. }
  589. IL_001b:
  590. {
  591. int32_t L_4 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  592. int32_t L_5 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  593. G_B3_0 = ((float)((float)(((float)((float)L_4)))/(float)(((float)((float)L_5)))));
  594. }
  595. IL_0028:
  596. {
  597. V_0 = G_B3_0;
  598. // return aspect > (16.0f / 9 - 0.05) && aspect < (16.0f / 9 + 0.05);
  599. float L_6 = V_0;
  600. if ((!(((double)(((double)((double)L_6)))) > ((double)(1.7277777910232544)))))
  601. {
  602. goto IL_0044;
  603. }
  604. }
  605. {
  606. float L_7 = V_0;
  607. return (bool)((((double)(((double)((double)L_7)))) < ((double)(1.8277777910232544)))? 1 : 0);
  608. }
  609. IL_0044:
  610. {
  611. return (bool)0;
  612. }
  613. }
  614. // System.Boolean QFramework.DeviceUtil::Phone167Resolution()
  615. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_Phone167Resolution_m7C545D1DA6016B1C03F1DD96BE2CC5A6A9C696B6 (const RuntimeMethod* method)
  616. {
  617. float V_0 = 0.0f;
  618. float G_B3_0 = 0.0f;
  619. {
  620. // float aspect = Screen.height > Screen.width ? (float)Screen.height / Screen.width : (float)Screen.width / Screen.height;
  621. int32_t L_0 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  622. int32_t L_1 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  623. if ((((int32_t)L_0) > ((int32_t)L_1)))
  624. {
  625. goto IL_001b;
  626. }
  627. }
  628. {
  629. int32_t L_2 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  630. int32_t L_3 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  631. G_B3_0 = ((float)((float)(((float)((float)L_2)))/(float)(((float)((float)L_3)))));
  632. goto IL_0028;
  633. }
  634. IL_001b:
  635. {
  636. int32_t L_4 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  637. int32_t L_5 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  638. G_B3_0 = ((float)((float)(((float)((float)L_4)))/(float)(((float)((float)L_5)))));
  639. }
  640. IL_0028:
  641. {
  642. V_0 = G_B3_0;
  643. // return aspect > (1920.0f / 1152 - 0.05) && aspect < (1920.0f / 1152 + 0.05);
  644. float L_6 = V_0;
  645. if ((!(((double)(((double)((double)L_6)))) > ((double)(1.6166666269302368)))))
  646. {
  647. goto IL_0044;
  648. }
  649. }
  650. {
  651. float L_7 = V_0;
  652. return (bool)((((double)(((double)((double)L_7)))) < ((double)(1.7166666269302369)))? 1 : 0);
  653. }
  654. IL_0044:
  655. {
  656. return (bool)0;
  657. }
  658. }
  659. // System.Boolean QFramework.DeviceUtil::Phone15Resolution()
  660. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_Phone15Resolution_m86841B3884B8E0D125F970CBC09A558567D872FD (const RuntimeMethod* method)
  661. {
  662. float V_0 = 0.0f;
  663. float G_B3_0 = 0.0f;
  664. {
  665. // float aspect = Screen.height > Screen.width ? (float)Screen.height / Screen.width : (float)Screen.width / Screen.height;
  666. int32_t L_0 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  667. int32_t L_1 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  668. if ((((int32_t)L_0) > ((int32_t)L_1)))
  669. {
  670. goto IL_001b;
  671. }
  672. }
  673. {
  674. int32_t L_2 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  675. int32_t L_3 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  676. G_B3_0 = ((float)((float)(((float)((float)L_2)))/(float)(((float)((float)L_3)))));
  677. goto IL_0028;
  678. }
  679. IL_001b:
  680. {
  681. int32_t L_4 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  682. int32_t L_5 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  683. G_B3_0 = ((float)((float)(((float)((float)L_4)))/(float)(((float)((float)L_5)))));
  684. }
  685. IL_0028:
  686. {
  687. V_0 = G_B3_0;
  688. // return aspect > (960.0f / 640 - 0.05) && aspect < (960.0f / 640+ 0.05);
  689. float L_6 = V_0;
  690. if ((!(((double)(((double)((double)L_6)))) > ((double)(1.45)))))
  691. {
  692. goto IL_0044;
  693. }
  694. }
  695. {
  696. float L_7 = V_0;
  697. return (bool)((((double)(((double)((double)L_7)))) < ((double)(1.55)))? 1 : 0);
  698. }
  699. IL_0044:
  700. {
  701. return (bool)0;
  702. }
  703. }
  704. // System.Boolean QFramework.DeviceUtil::Phone160Resolution()
  705. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_Phone160Resolution_m1558920C784487AD95BB565E5953B9E29E8D1892 (const RuntimeMethod* method)
  706. {
  707. float V_0 = 0.0f;
  708. float G_B3_0 = 0.0f;
  709. {
  710. // float aspect = Screen.height > Screen.width ? (float)Screen.height / Screen.width : (float)Screen.width / Screen.height;
  711. int32_t L_0 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  712. int32_t L_1 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  713. if ((((int32_t)L_0) > ((int32_t)L_1)))
  714. {
  715. goto IL_001b;
  716. }
  717. }
  718. {
  719. int32_t L_2 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  720. int32_t L_3 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  721. G_B3_0 = ((float)((float)(((float)((float)L_2)))/(float)(((float)((float)L_3)))));
  722. goto IL_0028;
  723. }
  724. IL_001b:
  725. {
  726. int32_t L_4 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  727. int32_t L_5 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  728. G_B3_0 = ((float)((float)(((float)((float)L_4)))/(float)(((float)((float)L_5)))));
  729. }
  730. IL_0028:
  731. {
  732. V_0 = G_B3_0;
  733. // return aspect > (2560.0f / 1600 - 0.05) && aspect < (2560.0f / 1600 + 0.05);
  734. float L_6 = V_0;
  735. if ((!(((double)(((double)((double)L_6)))) > ((double)(1.5500000238418579)))))
  736. {
  737. goto IL_0044;
  738. }
  739. }
  740. {
  741. float L_7 = V_0;
  742. return (bool)((((double)(((double)((double)L_7)))) < ((double)(1.650000023841858)))? 1 : 0);
  743. }
  744. IL_0044:
  745. {
  746. return (bool)0;
  747. }
  748. }
  749. // System.Boolean QFramework.DeviceUtil::PadResolution()
  750. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_PadResolution_mC82D465CAA78B4746BE42548619900917B4EBD08 (const RuntimeMethod* method)
  751. {
  752. float V_0 = 0.0f;
  753. float G_B3_0 = 0.0f;
  754. {
  755. // float aspect = Screen.height > Screen.width ? (float)Screen.height / Screen.width : (float)Screen.width / Screen.height;
  756. int32_t L_0 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  757. int32_t L_1 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  758. if ((((int32_t)L_0) > ((int32_t)L_1)))
  759. {
  760. goto IL_001b;
  761. }
  762. }
  763. {
  764. int32_t L_2 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  765. int32_t L_3 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  766. G_B3_0 = ((float)((float)(((float)((float)L_2)))/(float)(((float)((float)L_3)))));
  767. goto IL_0028;
  768. }
  769. IL_001b:
  770. {
  771. int32_t L_4 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
  772. int32_t L_5 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
  773. G_B3_0 = ((float)((float)(((float)((float)L_4)))/(float)(((float)((float)L_5)))));
  774. }
  775. IL_0028:
  776. {
  777. V_0 = G_B3_0;
  778. // return aspect > (4.0f / 3 - 0.05) && aspect < (4.0f / 3 + 0.05);
  779. float L_6 = V_0;
  780. if ((!(((double)(((double)((double)L_6)))) > ((double)(1.2833333730697631)))))
  781. {
  782. goto IL_0044;
  783. }
  784. }
  785. {
  786. float L_7 = V_0;
  787. return (bool)((((double)(((double)((double)L_7)))) < ((double)(1.3833333730697632)))? 1 : 0);
  788. }
  789. IL_0044:
  790. {
  791. return (bool)0;
  792. }
  793. }
  794. // System.Boolean QFramework.DeviceUtil::IsIPhone()
  795. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsIPhone_mDFF4211BBF9F5461CD4C17F680BA708EAD4BB4F6 (const RuntimeMethod* method)
  796. {
  797. static bool s_Il2CppMethodInitialized;
  798. if (!s_Il2CppMethodInitialized)
  799. {
  800. il2cpp_codegen_initialize_method (DeviceUtil_IsIPhone_mDFF4211BBF9F5461CD4C17F680BA708EAD4BB4F6_MetadataUsageId);
  801. s_Il2CppMethodInitialized = true;
  802. }
  803. int32_t V_0 = 0;
  804. {
  805. // var deviceID = GetDeviceID();
  806. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  807. int32_t L_0 = DeviceUtil_GetDeviceID_m55D9D90785CBA0BB88A0D82098810140EF6F4DF0(/*hidden argument*/NULL);
  808. V_0 = L_0;
  809. // return IPhoneIDs.Contains(deviceID);
  810. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_1 = ((DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_StaticFields*)il2cpp_codegen_static_fields_for(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var))->get_IPhoneIDs_0();
  811. int32_t L_2 = V_0;
  812. bool L_3 = Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D((RuntimeObject*)(RuntimeObject*)L_1, L_2, /*hidden argument*/Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D_RuntimeMethod_var);
  813. return L_3;
  814. }
  815. }
  816. // System.Int32 QFramework.DeviceUtil::GetDeviceID()
  817. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DeviceUtil_GetDeviceID_m55D9D90785CBA0BB88A0D82098810140EF6F4DF0 (const RuntimeMethod* method)
  818. {
  819. {
  820. // return (int) UnityEngine.iOS.Device.generation;
  821. int32_t L_0 = Device_get_generation_m1B212A72D6BB18EAED4D65DA89702D69A22A3F99(/*hidden argument*/NULL);
  822. return L_0;
  823. }
  824. }
  825. // System.Boolean QFramework.DeviceUtil::IsIPad()
  826. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsIPad_m7E8F7DBAACBE05687B1D7FC3DF2C6BA667806C3C (const RuntimeMethod* method)
  827. {
  828. static bool s_Il2CppMethodInitialized;
  829. if (!s_Il2CppMethodInitialized)
  830. {
  831. il2cpp_codegen_initialize_method (DeviceUtil_IsIPad_m7E8F7DBAACBE05687B1D7FC3DF2C6BA667806C3C_MetadataUsageId);
  832. s_Il2CppMethodInitialized = true;
  833. }
  834. int32_t V_0 = 0;
  835. {
  836. // var deviceID = GetDeviceID();
  837. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  838. int32_t L_0 = DeviceUtil_GetDeviceID_m55D9D90785CBA0BB88A0D82098810140EF6F4DF0(/*hidden argument*/NULL);
  839. V_0 = L_0;
  840. // return IPadIDs.Contains(deviceID);
  841. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_1 = ((DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_StaticFields*)il2cpp_codegen_static_fields_for(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var))->get_IPadIDs_1();
  842. int32_t L_2 = V_0;
  843. bool L_3 = Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D((RuntimeObject*)(RuntimeObject*)L_1, L_2, /*hidden argument*/Enumerable_Contains_TisInt32_t585191389E07734F19F3156FF88FB3EF4800D102_m7B605FDE3A9441189BC0CBAB3BE96DBB55B8C61D_RuntimeMethod_var);
  844. return L_3;
  845. }
  846. }
  847. // System.String QFramework.DeviceUtil::GetOSSuffix()
  848. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* DeviceUtil_GetOSSuffix_mDB4896E04FBF808A23DCCCEE468F2A4DBA2DA171 (const RuntimeMethod* method)
  849. {
  850. static bool s_Il2CppMethodInitialized;
  851. if (!s_Il2CppMethodInitialized)
  852. {
  853. il2cpp_codegen_initialize_method (DeviceUtil_GetOSSuffix_mDB4896E04FBF808A23DCCCEE468F2A4DBA2DA171_MetadataUsageId);
  854. s_Il2CppMethodInitialized = true;
  855. }
  856. {
  857. // if (IsApplePlatform())
  858. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  859. bool L_0 = DeviceUtil_IsApplePlatform_mA2A93FB1250869E386622D8D165597E5907EFF19(/*hidden argument*/NULL);
  860. if (!L_0)
  861. {
  862. goto IL_000d;
  863. }
  864. }
  865. {
  866. // return "ios";
  867. return _stringLiteral0F8D25735FF76A079D6C88C1E05650B7DD4F02EE;
  868. }
  869. IL_000d:
  870. {
  871. // return "android";
  872. return _stringLiteralE4BBE5B7A4C1EB55652965AEE885DD59BD2EE7F4;
  873. }
  874. }
  875. // System.Boolean QFramework.DeviceUtil::IsAndroidPad()
  876. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsAndroidPad_m16B4C8C16FDBBDFB3ED1D7F78750BBF4BDC8B900 (const RuntimeMethod* method)
  877. {
  878. static bool s_Il2CppMethodInitialized;
  879. if (!s_Il2CppMethodInitialized)
  880. {
  881. il2cpp_codegen_initialize_method (DeviceUtil_IsAndroidPad_m16B4C8C16FDBBDFB3ED1D7F78750BBF4BDC8B900_MetadataUsageId);
  882. s_Il2CppMethodInitialized = true;
  883. }
  884. {
  885. // return IsAndroidPlatform() && PadResolution();
  886. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  887. bool L_0 = DeviceUtil_IsAndroidPlatform_m72E7D6A0B3A78D422ADCB65EB8E09D10575FC77D(/*hidden argument*/NULL);
  888. if (!L_0)
  889. {
  890. goto IL_000d;
  891. }
  892. }
  893. {
  894. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  895. bool L_1 = DeviceUtil_PadResolution_mC82D465CAA78B4746BE42548619900917B4EBD08(/*hidden argument*/NULL);
  896. return L_1;
  897. }
  898. IL_000d:
  899. {
  900. return (bool)0;
  901. }
  902. }
  903. // System.Boolean QFramework.DeviceUtil::IsAndroidPhone()
  904. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsAndroidPhone_m0EFF8EEC1C4CDD12058F92C1D548AD1D106B3F72 (const RuntimeMethod* method)
  905. {
  906. static bool s_Il2CppMethodInitialized;
  907. if (!s_Il2CppMethodInitialized)
  908. {
  909. il2cpp_codegen_initialize_method (DeviceUtil_IsAndroidPhone_m0EFF8EEC1C4CDD12058F92C1D548AD1D106B3F72_MetadataUsageId);
  910. s_Il2CppMethodInitialized = true;
  911. }
  912. {
  913. // return IsAndroidPlatform() && PhoneResolution();
  914. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  915. bool L_0 = DeviceUtil_IsAndroidPlatform_m72E7D6A0B3A78D422ADCB65EB8E09D10575FC77D(/*hidden argument*/NULL);
  916. if (!L_0)
  917. {
  918. goto IL_000d;
  919. }
  920. }
  921. {
  922. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  923. bool L_1 = DeviceUtil_PhoneResolution_m2D233BEF979AAFC28C374A3673A348B73D9E48D8(/*hidden argument*/NULL);
  924. return L_1;
  925. }
  926. IL_000d:
  927. {
  928. return (bool)0;
  929. }
  930. }
  931. // System.Boolean QFramework.DeviceUtil::IsAndroidPhone167()
  932. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsAndroidPhone167_m8B472B53BFE002643662EDE99EBA0374E82A9DD0 (const RuntimeMethod* method)
  933. {
  934. static bool s_Il2CppMethodInitialized;
  935. if (!s_Il2CppMethodInitialized)
  936. {
  937. il2cpp_codegen_initialize_method (DeviceUtil_IsAndroidPhone167_m8B472B53BFE002643662EDE99EBA0374E82A9DD0_MetadataUsageId);
  938. s_Il2CppMethodInitialized = true;
  939. }
  940. {
  941. // return IsAndroidPlatform() && Phone167Resolution();
  942. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  943. bool L_0 = DeviceUtil_IsAndroidPlatform_m72E7D6A0B3A78D422ADCB65EB8E09D10575FC77D(/*hidden argument*/NULL);
  944. if (!L_0)
  945. {
  946. goto IL_000d;
  947. }
  948. }
  949. {
  950. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  951. bool L_1 = DeviceUtil_Phone167Resolution_m7C545D1DA6016B1C03F1DD96BE2CC5A6A9C696B6(/*hidden argument*/NULL);
  952. return L_1;
  953. }
  954. IL_000d:
  955. {
  956. return (bool)0;
  957. }
  958. }
  959. // System.Boolean QFramework.DeviceUtil::IsAndroidPhone160()
  960. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DeviceUtil_IsAndroidPhone160_m223D12C4A697419C4E34F7FCD0C48C1611BE0F2F (const RuntimeMethod* method)
  961. {
  962. static bool s_Il2CppMethodInitialized;
  963. if (!s_Il2CppMethodInitialized)
  964. {
  965. il2cpp_codegen_initialize_method (DeviceUtil_IsAndroidPhone160_m223D12C4A697419C4E34F7FCD0C48C1611BE0F2F_MetadataUsageId);
  966. s_Il2CppMethodInitialized = true;
  967. }
  968. {
  969. // return IsAndroidPlatform() && Phone160Resolution();
  970. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  971. bool L_0 = DeviceUtil_IsAndroidPlatform_m72E7D6A0B3A78D422ADCB65EB8E09D10575FC77D(/*hidden argument*/NULL);
  972. if (!L_0)
  973. {
  974. goto IL_000d;
  975. }
  976. }
  977. {
  978. IL2CPP_RUNTIME_CLASS_INIT(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var);
  979. bool L_1 = DeviceUtil_Phone160Resolution_m1558920C784487AD95BB565E5953B9E29E8D1892(/*hidden argument*/NULL);
  980. return L_1;
  981. }
  982. IL_000d:
  983. {
  984. return (bool)0;
  985. }
  986. }
  987. // System.Void QFramework.DeviceUtil::.ctor()
  988. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DeviceUtil__ctor_m6890B67E2159991972F8C6BFC3AFA036C834C94E (DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8 * __this, const RuntimeMethod* method)
  989. {
  990. {
  991. Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
  992. return;
  993. }
  994. }
  995. // System.Void QFramework.DeviceUtil::.cctor()
  996. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DeviceUtil__cctor_m9C6B5054BA3E08A59BF072E9FC02B496FECA6C11 (const RuntimeMethod* method)
  997. {
  998. static bool s_Il2CppMethodInitialized;
  999. if (!s_Il2CppMethodInitialized)
  1000. {
  1001. il2cpp_codegen_initialize_method (DeviceUtil__cctor_m9C6B5054BA3E08A59BF072E9FC02B496FECA6C11_MetadataUsageId);
  1002. s_Il2CppMethodInitialized = true;
  1003. }
  1004. {
  1005. // public static int[] IPhoneIDs =
  1006. // {
  1007. // 1, 2, 3, 8, 10, 11, 13, 17, 18, 21, 22, 25, 26, 29, 31, 32, 10001
  1008. // };
  1009. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = (Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)SZArrayNew(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var, (uint32_t)((int32_t)17));
  1010. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_1 = L_0;
  1011. RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_2 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98____CE2667BC180079AC98C7E92254F6566C74160C23_1_FieldInfo_var) };
  1012. RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_1, L_2, /*hidden argument*/NULL);
  1013. ((DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_StaticFields*)il2cpp_codegen_static_fields_for(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var))->set_IPhoneIDs_0(L_1);
  1014. // public static int[] IPadIDs =
  1015. // {
  1016. // 7, 10, 12, 15, 16, 19, 20, 24, 25, 27, 28, 30, 10002
  1017. // };
  1018. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_3 = (Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)SZArrayNew(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var, (uint32_t)((int32_t)13));
  1019. Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_4 = L_3;
  1020. RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_5 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_tC2B0FBA191B1F21A98B32EE5D15395C851630E98____AEC0264044744C83DB6479B80C934064F2B2A8AD_0_FieldInfo_var) };
  1021. RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_4, L_5, /*hidden argument*/NULL);
  1022. ((DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_StaticFields*)il2cpp_codegen_static_fields_for(DeviceUtil_t25455C4C009E11A2BC25AE68CDE7FCF58FF348A8_il2cpp_TypeInfo_var))->set_IPadIDs_1(L_4);
  1023. return;
  1024. }
  1025. }
  1026. #ifdef __clang__
  1027. #pragma clang diagnostic pop
  1028. #endif