// // GJPathRewardPopup::onClaim from 0x100303410 to 0x100303534 (292 bytes) // // 1 xrefs: // > GJPathRewardPopup::init @ 0x100303040 // // 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 *v2; // rax GJRewardItem *v3; // rax GJRewardItem *v4; // r14 cocos2d::CCFadeTo *v5; // rax unsigned int v6; // r15d unsigned int v7; // eax int v8; // ecx int v9; // r8d int v10; // r9d cocos2d::CCAction *v11; // rax RewardUnlockLayer *v12; // r15 __int64 v13; // r12 int v14; // eax cocos2d::CCDirector *v15; // rax cocos2d::CCTouchDispatcher *v16; // rax v2 = GameStatsManager::sharedState(); v3 = GameStatsManager::unlockPathChest(v2, a1->m_pathNumber); if ( v3 ) { v4 = v3; v5 = cocos2d::CCFadeTo::create(0.2, 0); cocos2d::CCNode::runAction(a1, v5); v6 = (unsigned int)cocos2d::CCDelayTime::create(0.2); v7 = (unsigned int)cocos2d::CCCallFunc::create( a1, (cocos2d::SEL_CallFunc)(unsigned __int64)GJPathRewardPopup::closePopup); v11 = (cocos2d::CCAction *)sub_1003B5760(v6, v7, 0, v8, v9, v10); cocos2d::CCNode::runAction(a1, v11); v12 = RewardUnlockLayer::create(v4->m_rewardType, nullptr); v13 = ((__int64 (__fastcall *)(GJPathRewardPopup *))a1->getParent)(a1); v14 = ((__int64 (__fastcall *)(GJPathRewardPopup *))a1->getZOrder)(a1); (*(void (__fastcall **)(__int64, RewardUnlockLayer *, _QWORD))(*(_QWORD *)v13 + 448LL))( v13, v12, (unsigned int)(v14 + 1)); RewardUnlockLayer::showCollectReward(v12, v4); } else { v15 = cocos2d::CCDirector::sharedDirector(); v16 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v15->getTouchDispatcher)(v15); cocos2d::CCTouchDispatcher::unregisterForcePrio(v16, a1); cocos2d::CCNode::stopAllActions(a1); cocos2d::CCNode::unscheduleAllSelectors(a1); ((void (__fastcall *)(GJPathRewardPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0); ((void (__fastcall *)(GJPathRewardPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source