// // GJRewardItem::getRewardObjectForType from 0x4129fa to 0x412a4a (80 bytes) // // 1 xrefs: // > GameStatsManager::preProcessReward @ 0x418906 // // 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::CCObject *v4; // r0 unsigned int i; // r6 GJRewardObject *v6; // r5 if ( !a1->m_rewardObjects ) { v4 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); sub_40C47A(&a1->m_rewardObjects, v4); } for ( i = 0; i < cocos2d::CCArray::count(a1->m_rewardObjects); ++i ) { v6 = (GJRewardObject *)cocos2d::CCArray::objectAtIndex(a1->m_rewardObjects, i); if ( v6->m_specialRewardItem == a2 ) return v6; } v6 = GJRewardObject::create(a2, 0, 0); cocos2d::CCArray::addObject(a1->m_rewardObjects, v6); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source