// // GJPathRewardPopup::onClaim from 0x1003bbc84 to 0x1003bbd94 (272 bytes) // // 1 xrefs: // > GJPathRewardPopup::init @ 0x1003bb8b8 // // 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 __fastcall GJPathRewardPopup::onClaim(GJPathRewardPopup *a1, cocos2d::CCObject *a2) { GameStatsManager *v3; // x0 GJRewardItem *v4; // x0 GJRewardItem *v5; // x19 cocos2d::CCFadeTo *v6; // x0 cocos2d::CCDelayTime *v7; // x21 char v8; // w0 __int64 v9; // x1 __int64 v10; // x2 __int64 v11; // x3 __int64 v12; // x4 __int64 v13; // x5 __int64 v14; // x6 __int64 v15; // x7 cocos2d::CCSequence *v16; // x0 RewardUnlockLayer *v17; // x21 __int64 v18; // x22 int v19; // w0 cocos2d::SEL_CallFunc v20; // 0:x1.16 v3 = GameStatsManager::sharedState(); v4 = GameStatsManager::unlockPathChest(v3, a1->m_pathNumber); if ( v4 ) { v5 = v4; v6 = cocos2d::CCFadeTo::create(0.2, 0); cocos2d::CCNode::runAction(a1, v6); v7 = cocos2d::CCDelayTime::create(0.2); v20.ptr = (void (*)(void))GJPathRewardPopup::closePopup; v20.adj = 0; v8 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v20); v16 = sub_10018A494(v7, v9, v10, v11, v12, v13, v14, v15, v8); cocos2d::CCNode::runAction(a1, v16); v17 = RewardUnlockLayer::create(v5->m_rewardType, nullptr); v18 = ((__int64 (__fastcall *)(GJPathRewardPopup *))a1->getParent)(a1); v19 = ((__int64 (__fastcall *)(GJPathRewardPopup *))a1->getZOrder)(a1); (*(void (__fastcall **)(__int64, RewardUnlockLayer *, _QWORD))(*(_QWORD *)v18 + 448LL))( v18, v17, (unsigned int)(v19 + 1)); RewardUnlockLayer::showCollectReward(v17, v5); } else { GJPathRewardPopup::closePopup(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source