// // PurchaseItemPopup::onPurchase from 0x4e1f0e to 0x4e1f46 (56 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void PurchaseItemPopup::onPurchase(PurchaseItemPopup *a1, cocos2d::CCObject *a2) { GameStatsManager *v3; // r0 GJPurchaseDelegate *m_delegate; // r0 v3 = GameStatsManager::sharedState(); if ( GameStatsManager::purchaseItem(v3, a1->m_storeItem->m_index.random - a1->m_storeItem->m_index.seed) ) { m_delegate = a1->m_delegate; if ( m_delegate ) m_delegate->didPurchaseItem(m_delegate, a1->m_storeItem); } PurchaseItemPopup::onClose(a1, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source