暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnityEngine.Purchasing.Apple.cpp 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. #include "pch-cpp.hpp"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <limits>
  8. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771;
  9. struct DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E;
  10. struct MethodInfo_t;
  11. struct String_t;
  12. struct UnityPurchasingCallback_tFC58410D7A50DD05CC7430C76C7E0277A213757D;
  13. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  14. struct iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E;
  15. struct Delegate_t_marshaled_com;
  16. struct Delegate_t_marshaled_pinvoke;
  17. IL2CPP_EXTERN_C_BEGIN
  18. IL2CPP_EXTERN_C_END
  19. #ifdef __clang__
  20. #pragma clang diagnostic push
  21. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  22. #pragma clang diagnostic ignored "-Wunused-variable"
  23. #endif
  24. struct U3CModuleU3E_t4C00C1EFBBF42D901D63C66F365574C5EA10B872
  25. {
  26. };
  27. struct String_t : public RuntimeObject
  28. {
  29. int32_t ____stringLength;
  30. Il2CppChar ____firstChar;
  31. };
  32. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  33. {
  34. };
  35. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  36. {
  37. };
  38. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  39. {
  40. };
  41. struct iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E : public RuntimeObject
  42. {
  43. };
  44. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  45. {
  46. bool ___m_value;
  47. };
  48. struct Double_tE150EF3D1D43DEE85D533810AB4C742307EEDE5F
  49. {
  50. double ___m_value;
  51. };
  52. struct IntPtr_t
  53. {
  54. void* ___m_value;
  55. };
  56. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  57. {
  58. union
  59. {
  60. struct
  61. {
  62. };
  63. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  64. };
  65. };
  66. struct Delegate_t : public RuntimeObject
  67. {
  68. intptr_t ___method_ptr;
  69. intptr_t ___invoke_impl;
  70. RuntimeObject* ___m_target;
  71. intptr_t ___method;
  72. intptr_t ___delegate_trampoline;
  73. intptr_t ___extra_arg;
  74. intptr_t ___method_code;
  75. intptr_t ___interp_method;
  76. intptr_t ___interp_invoke_impl;
  77. MethodInfo_t* ___method_info;
  78. MethodInfo_t* ___original_method_info;
  79. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  80. bool ___method_is_virtual;
  81. };
  82. struct Delegate_t_marshaled_pinvoke
  83. {
  84. intptr_t ___method_ptr;
  85. intptr_t ___invoke_impl;
  86. Il2CppIUnknown* ___m_target;
  87. intptr_t ___method;
  88. intptr_t ___delegate_trampoline;
  89. intptr_t ___extra_arg;
  90. intptr_t ___method_code;
  91. intptr_t ___interp_method;
  92. intptr_t ___interp_invoke_impl;
  93. MethodInfo_t* ___method_info;
  94. MethodInfo_t* ___original_method_info;
  95. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  96. int32_t ___method_is_virtual;
  97. };
  98. struct Delegate_t_marshaled_com
  99. {
  100. intptr_t ___method_ptr;
  101. intptr_t ___invoke_impl;
  102. Il2CppIUnknown* ___m_target;
  103. intptr_t ___method;
  104. intptr_t ___delegate_trampoline;
  105. intptr_t ___extra_arg;
  106. intptr_t ___method_code;
  107. intptr_t ___interp_method;
  108. intptr_t ___interp_invoke_impl;
  109. MethodInfo_t* ___method_info;
  110. MethodInfo_t* ___original_method_info;
  111. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  112. int32_t ___method_is_virtual;
  113. };
  114. struct MulticastDelegate_t : public Delegate_t
  115. {
  116. DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771* ___delegates;
  117. };
  118. struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
  119. {
  120. Delegate_t_marshaled_pinvoke** ___delegates;
  121. };
  122. struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
  123. {
  124. Delegate_t_marshaled_com** ___delegates;
  125. };
  126. struct UnityPurchasingCallback_tFC58410D7A50DD05CC7430C76C7E0277A213757D : public MulticastDelegate_t
  127. {
  128. };
  129. struct String_t_StaticFields
  130. {
  131. String_t* ___Empty;
  132. };
  133. #ifdef __clang__
  134. #pragma clang diagnostic pop
  135. #endif
  136. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_setUnityPurchasingCallback_mC81D3CFFC1A696A7B544AC3E78F404D51CA493C1 (UnityPurchasingCallback_tFC58410D7A50DD05CC7430C76C7E0277A213757D* ___0_AsyncCallback, const RuntimeMethod* method) ;
  137. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* iOSStoreBindings_getUnityPurchasingAppReceipt_m433D81E20669CD44CB5433D7898D677C64DB5909 (const RuntimeMethod* method) ;
  138. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR double iOSStoreBindings_getUnityPurchasingAppReceiptModificationDate_m2FC5CA9222966AB9871B34F8FF16C21531323937 (const RuntimeMethod* method) ;
  139. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingRetrieveProducts_m42525F0667E3A76B7E5C5B6DA5E5EB599BFDE3DE (String_t* ___0_json, const RuntimeMethod* method) ;
  140. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingPurchase_mA2C0009A6B4DEF4CBCE1731D6460A6BCB1485DD6 (String_t* ___0_json, String_t* ___1_developerPayload, const RuntimeMethod* method) ;
  141. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingFinishTransaction_m8AC4AED5DD0D03966512020380D4EB8C3BD89BB6 (String_t* ___0_productJSON, String_t* ___1_transactionId, const RuntimeMethod* method) ;
  142. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingAddTransactionObserver_mDAE9E8FF1BFDDA43A9BED7156F154C238638C420 (const RuntimeMethod* method) ;
  143. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_mC95655465276823D57CABBE7DE98095F7FF34D26 (const RuntimeMethod* method) ;
  144. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2 (RuntimeObject* __this, const RuntimeMethod* method) ;
  145. IL2CPP_EXTERN_C void DEFAULT_CALL unityPurchasingRetrieveProducts(char*);
  146. IL2CPP_EXTERN_C void DEFAULT_CALL unityPurchasingPurchase(char*, char*);
  147. IL2CPP_EXTERN_C void DEFAULT_CALL unityPurchasingFinishTransaction(char*, char*);
  148. IL2CPP_EXTERN_C void DEFAULT_CALL unityPurchasingAddTransactionObserver();
  149. IL2CPP_EXTERN_C void DEFAULT_CALL setUnityPurchasingCallback(Il2CppMethodPointer);
  150. IL2CPP_EXTERN_C char* DEFAULT_CALL getUnityPurchasingAppReceipt();
  151. IL2CPP_EXTERN_C double DEFAULT_CALL getUnityPurchasingAppReceiptModificationDate();
  152. IL2CPP_EXTERN_C void DEFAULT_CALL unityPurchasingInterceptPromotionalPurchases();
  153. #ifdef __clang__
  154. #pragma clang diagnostic push
  155. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  156. #pragma clang diagnostic ignored "-Wunused-variable"
  157. #endif
  158. #ifdef __clang__
  159. #pragma clang diagnostic pop
  160. #endif
  161. #ifdef __clang__
  162. #pragma clang diagnostic push
  163. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  164. #pragma clang diagnostic ignored "-Wunused-variable"
  165. #endif
  166. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingRetrieveProducts_m42525F0667E3A76B7E5C5B6DA5E5EB599BFDE3DE (String_t* ___0_json, const RuntimeMethod* method)
  167. {
  168. typedef void (DEFAULT_CALL *PInvokeFunc) (char*);
  169. char* ____0_json_marshaled = NULL;
  170. ____0_json_marshaled = il2cpp_codegen_marshal_string(___0_json);
  171. reinterpret_cast<PInvokeFunc>(unityPurchasingRetrieveProducts)(____0_json_marshaled);
  172. il2cpp_codegen_marshal_free(____0_json_marshaled);
  173. ____0_json_marshaled = NULL;
  174. }
  175. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingPurchase_mA2C0009A6B4DEF4CBCE1731D6460A6BCB1485DD6 (String_t* ___0_json, String_t* ___1_developerPayload, const RuntimeMethod* method)
  176. {
  177. typedef void (DEFAULT_CALL *PInvokeFunc) (char*, char*);
  178. char* ____0_json_marshaled = NULL;
  179. ____0_json_marshaled = il2cpp_codegen_marshal_string(___0_json);
  180. char* ____1_developerPayload_marshaled = NULL;
  181. ____1_developerPayload_marshaled = il2cpp_codegen_marshal_string(___1_developerPayload);
  182. reinterpret_cast<PInvokeFunc>(unityPurchasingPurchase)(____0_json_marshaled, ____1_developerPayload_marshaled);
  183. il2cpp_codegen_marshal_free(____0_json_marshaled);
  184. ____0_json_marshaled = NULL;
  185. il2cpp_codegen_marshal_free(____1_developerPayload_marshaled);
  186. ____1_developerPayload_marshaled = NULL;
  187. }
  188. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingFinishTransaction_m8AC4AED5DD0D03966512020380D4EB8C3BD89BB6 (String_t* ___0_productJSON, String_t* ___1_transactionId, const RuntimeMethod* method)
  189. {
  190. typedef void (DEFAULT_CALL *PInvokeFunc) (char*, char*);
  191. char* ____0_productJSON_marshaled = NULL;
  192. ____0_productJSON_marshaled = il2cpp_codegen_marshal_string(___0_productJSON);
  193. char* ____1_transactionId_marshaled = NULL;
  194. ____1_transactionId_marshaled = il2cpp_codegen_marshal_string(___1_transactionId);
  195. reinterpret_cast<PInvokeFunc>(unityPurchasingFinishTransaction)(____0_productJSON_marshaled, ____1_transactionId_marshaled);
  196. il2cpp_codegen_marshal_free(____0_productJSON_marshaled);
  197. ____0_productJSON_marshaled = NULL;
  198. il2cpp_codegen_marshal_free(____1_transactionId_marshaled);
  199. ____1_transactionId_marshaled = NULL;
  200. }
  201. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingAddTransactionObserver_mDAE9E8FF1BFDDA43A9BED7156F154C238638C420 (const RuntimeMethod* method)
  202. {
  203. typedef void (DEFAULT_CALL *PInvokeFunc) ();
  204. reinterpret_cast<PInvokeFunc>(unityPurchasingAddTransactionObserver)();
  205. }
  206. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_setUnityPurchasingCallback_mC81D3CFFC1A696A7B544AC3E78F404D51CA493C1 (UnityPurchasingCallback_tFC58410D7A50DD05CC7430C76C7E0277A213757D* ___0_AsyncCallback, const RuntimeMethod* method)
  207. {
  208. typedef void (DEFAULT_CALL *PInvokeFunc) (Il2CppMethodPointer);
  209. Il2CppMethodPointer ____0_AsyncCallback_marshaled = NULL;
  210. ____0_AsyncCallback_marshaled = il2cpp_codegen_marshal_delegate(reinterpret_cast<MulticastDelegate_t*>(___0_AsyncCallback));
  211. reinterpret_cast<PInvokeFunc>(setUnityPurchasingCallback)(____0_AsyncCallback_marshaled);
  212. }
  213. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* iOSStoreBindings_getUnityPurchasingAppReceipt_m433D81E20669CD44CB5433D7898D677C64DB5909 (const RuntimeMethod* method)
  214. {
  215. typedef char* (DEFAULT_CALL *PInvokeFunc) ();
  216. char* returnValue = reinterpret_cast<PInvokeFunc>(getUnityPurchasingAppReceipt)();
  217. String_t* _returnValue_unmarshaled = NULL;
  218. _returnValue_unmarshaled = il2cpp_codegen_marshal_string_result(returnValue);
  219. il2cpp_codegen_marshal_free(returnValue);
  220. returnValue = NULL;
  221. return _returnValue_unmarshaled;
  222. }
  223. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR double iOSStoreBindings_getUnityPurchasingAppReceiptModificationDate_m2FC5CA9222966AB9871B34F8FF16C21531323937 (const RuntimeMethod* method)
  224. {
  225. typedef double (DEFAULT_CALL *PInvokeFunc) ();
  226. double returnValue = reinterpret_cast<PInvokeFunc>(getUnityPurchasingAppReceiptModificationDate)();
  227. return returnValue;
  228. }
  229. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_mC95655465276823D57CABBE7DE98095F7FF34D26 (const RuntimeMethod* method)
  230. {
  231. typedef void (DEFAULT_CALL *PInvokeFunc) ();
  232. reinterpret_cast<PInvokeFunc>(unityPurchasingInterceptPromotionalPurchases)();
  233. }
  234. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_SetUnityPurchasingCallback_m81C53A0B93AA28C42A99F4B8F7F9839AA6ACC2BC (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, UnityPurchasingCallback_tFC58410D7A50DD05CC7430C76C7E0277A213757D* ___0_AsyncCallback, const RuntimeMethod* method)
  235. {
  236. {
  237. UnityPurchasingCallback_tFC58410D7A50DD05CC7430C76C7E0277A213757D* L_0 = ___0_AsyncCallback;
  238. iOSStoreBindings_setUnityPurchasingCallback_mC81D3CFFC1A696A7B544AC3E78F404D51CA493C1(L_0, NULL);
  239. return;
  240. }
  241. }
  242. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* iOSStoreBindings_get_appReceipt_m5601637B09453E936F4EAAEBB1538C919BC27B24 (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, const RuntimeMethod* method)
  243. {
  244. String_t* V_0 = NULL;
  245. {
  246. String_t* L_0;
  247. L_0 = iOSStoreBindings_getUnityPurchasingAppReceipt_m433D81E20669CD44CB5433D7898D677C64DB5909(NULL);
  248. V_0 = L_0;
  249. goto IL_0009;
  250. }
  251. IL_0009:
  252. {
  253. String_t* L_1 = V_0;
  254. return L_1;
  255. }
  256. }
  257. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR double iOSStoreBindings_get_appReceiptModificationDate_mC7AC0A0F94BF888309429DCDBB319CCDCD0330A2 (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, const RuntimeMethod* method)
  258. {
  259. double V_0 = 0.0;
  260. {
  261. double L_0;
  262. L_0 = iOSStoreBindings_getUnityPurchasingAppReceiptModificationDate_m2FC5CA9222966AB9871B34F8FF16C21531323937(NULL);
  263. V_0 = L_0;
  264. goto IL_0009;
  265. }
  266. IL_0009:
  267. {
  268. double L_1 = V_0;
  269. return L_1;
  270. }
  271. }
  272. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_RetrieveProducts_m523D9AFA65C09DBDB8963047E72DEC16B667E824 (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, String_t* ___0_json, const RuntimeMethod* method)
  273. {
  274. {
  275. String_t* L_0 = ___0_json;
  276. iOSStoreBindings_unityPurchasingRetrieveProducts_m42525F0667E3A76B7E5C5B6DA5E5EB599BFDE3DE(L_0, NULL);
  277. return;
  278. }
  279. }
  280. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_Purchase_m7AEA75645B7492A678C63FF7CDE56F8E75AB64F7 (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, String_t* ___0_productJSON, String_t* ___1_developerPayload, const RuntimeMethod* method)
  281. {
  282. {
  283. String_t* L_0 = ___0_productJSON;
  284. String_t* L_1 = ___1_developerPayload;
  285. iOSStoreBindings_unityPurchasingPurchase_mA2C0009A6B4DEF4CBCE1731D6460A6BCB1485DD6(L_0, L_1, NULL);
  286. return;
  287. }
  288. }
  289. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_FinishTransaction_m566E3AFFFEADEE7F71D9934A0DBA2AB1BF76B49E (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, String_t* ___0_productJSON, String_t* ___1_transactionId, const RuntimeMethod* method)
  290. {
  291. {
  292. String_t* L_0 = ___0_productJSON;
  293. String_t* L_1 = ___1_transactionId;
  294. iOSStoreBindings_unityPurchasingFinishTransaction_m8AC4AED5DD0D03966512020380D4EB8C3BD89BB6(L_0, L_1, NULL);
  295. return;
  296. }
  297. }
  298. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_AddTransactionObserver_m7FB956E6DB7B00AC684CDC5567EE3B77F4544F79 (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, const RuntimeMethod* method)
  299. {
  300. {
  301. iOSStoreBindings_unityPurchasingAddTransactionObserver_mDAE9E8FF1BFDDA43A9BED7156F154C238638C420(NULL);
  302. return;
  303. }
  304. }
  305. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings_InterceptPromotionalPurchases_m626C7254EB165FC41BBFF57092C6638BEC054C41 (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, const RuntimeMethod* method)
  306. {
  307. {
  308. iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_mC95655465276823D57CABBE7DE98095F7FF34D26(NULL);
  309. return;
  310. }
  311. }
  312. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void iOSStoreBindings__ctor_m5021264195041D2BDE67FC23F449D81C7DFCFC1A (iOSStoreBindings_t90DCEE577BA3FB8D54AC584DC9FA27EC9203DE9E* __this, const RuntimeMethod* method)
  313. {
  314. {
  315. Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
  316. return;
  317. }
  318. }
  319. #ifdef __clang__
  320. #pragma clang diagnostic pop
  321. #endif