// // GJRewardItem::getRewardObjectForType from 0x100333898 to 0x100333940 (168 bytes) // // 1 xrefs: // > GameStatsManager::preProcessReward @ 0x1003337ec // // 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 *__fastcall GJRewardItem::getRewardObjectForType(GJRewardItem *a1, SpecialRewardItem a2) { cocos2d::CCArray *m_rewardObjects; // x0 cocos2d::CCObject *v5; // x0 unsigned int v6; // w21 __int64 v7; // x0 GJRewardObject *v8; // x22 m_rewardObjects = a1->m_rewardObjects; if ( !m_rewardObjects ) { v5 = sub_10024A15C(); sub_10015C71C((__int64)a1, v5); m_rewardObjects = a1->m_rewardObjects; } if ( (unsigned int)sub_10024A36C((__int64)m_rewardObjects) ) { v6 = 0; while ( 1 ) { v7 = sub_10024A388((__int64)a1->m_rewardObjects, v6); if ( *(_DWORD *)(v7 + 56) == a2 ) return (GJRewardObject *)v7; if ( ++v6 >= (unsigned int)sub_10024A36C((__int64)a1->m_rewardObjects) ) goto LABEL_7; } } else { LABEL_7: v8 = GJRewardObject::create(a2, 0, 0); sub_10024A2D0((__int64)a1->m_rewardObjects); } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source