// // RewardsPage::onReward from 0x10021afe0 to 0x10021b0ce (238 bytes) // // 2 xrefs: // > RewardsPage::init @ 0x10021aacc // > RewardsPage::init @ 0x10021ac44 // // 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 RewardsPage::onReward(RewardsPage *a1, cocos2d::CCObject *a2) { int v2; // eax __int64 v3; // rcx RewardUnlockLayer *v4; // rax GameLevelManager *v5; // r14 int v6; // eax cocos2d::CCNode *v7; // rbx cocos2d::CCTintTo *v8; // rax __int16 v9; // [rsp+Ch] [rbp-14h] BYREF char v10; // [rsp+Eh] [rbp-12h] v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); if ( v2 == 2 ) { v3 = 656; if ( a1->m_rightOpen ) { LABEL_4: if ( !a1->m_openLayer ) { v4 = RewardUnlockLayer::create(v2, a1); a1->m_openLayer = v4; ((void (__fastcall *)(RewardsPage *, RewardUnlockLayer *))a1->addChild)(a1, v4); v5 = GameLevelManager::sharedState(); v6 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); GameLevelManager::getGJRewards(v5, v6); } return; } } else { if ( v2 != 1 ) goto LABEL_4; v3 = 648; if ( a1->m_leftOpen ) goto LABEL_4; } v7 = *(cocos2d::CCNode **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v3); if ( v7 ) { cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v3)); v10 = 0; v9 = 19455; ((void (__fastcall *)(cocos2d::CCNode *, __int16 *))v7->__vftable[1].setScale_0)(v7, &v9); v8 = cocos2d::CCTintTo::create(1.0, 0xFFu, 0xFFu, 0xFFu); cocos2d::CCNode::runAction(v7, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source