// // GJRewardItem::getRewardObjectForType from 0x7ad5e4 to 0x7ad6a8 (196 bytes) // // 2 xrefs: // > GameStatsManager::preProcessReward @ 0x7b38cc // > @ 0x92448 // // 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 // GJRewardObject *GJRewardItem::getRewardObjectForType(GJRewardItem *a1, SpecialRewardItem a2) { cocos2d::CCArray *m_rewardObjects; // x20 unsigned int v5; // w19 GJRewardObject *v6; // x20 bool v7; // cf unsigned int v8; // w1 cocos2d::CCObject *v10; // x0 cocos2d::CCArray *v11; // x1 m_rewardObjects = a1->m_rewardObjects; if ( !m_rewardObjects ) { v10 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); m_rewardObjects = (cocos2d::CCArray *)v10; v11 = a1->m_rewardObjects; if ( v10 != v11 ) { if ( v10 ) { cocos2d::CCObject::retain(v10); v11 = a1->m_rewardObjects; } if ( v11 ) cocos2d::CCObject::release(v11); a1->m_rewardObjects = m_rewardObjects; } } v5 = 0; while ( 1 ) { v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_rewardObjects); v8 = v5++; if ( v7 ) break; v6 = (GJRewardObject *)cocos2d::CCArray::objectAtIndex(a1->m_rewardObjects, v8); if ( v6->m_specialRewardItem == a2 ) return v6; m_rewardObjects = a1->m_rewardObjects; } v6 = GJRewardObject::create(a2, 0, 0); cocos2d::CCArray::addObject(a1->m_rewardObjects, v6); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source