// // RewardsPage::onReward from 0x938bf4 to 0x938d28 (308 bytes) // // 4 xrefs: // > @ 0x73aa0 // > RewardsPage::init @ 0x935900 // > RewardsPage::init @ 0x935a44 // > @ 0x122bd60 // // 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 RewardsPage::onReward(RewardsPage *a1, cocos2d::CCObject *a2) { int v4; // w0 cocos2d::CCLabelBMFont *m_rightLabel; // x20 cocos2d::CCLabelBMFont_vtbl *v6; // x2 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x2 cocos2d::CCTintTo *v8; // x0 RewardUnlockLayer *v9; // x0 GameLevelManager *v10; // x21 int v11; // w0 char v12; // [xsp+30h] [xbp+30h] BYREF char v13[2]; // [xsp+31h] [xbp+31h] BYREF v4 = a2->getTag(a2); if ( v4 != 1 ) { if ( v4 == 2 && !a1->m_rightOpen ) { m_rightLabel = a1->m_rightLabel; goto LABEL_8; } LABEL_3: if ( !a1->m_openLayer ) { v9 = RewardUnlockLayer::create(v4, a1); a1->m_openLayer = v9; a1->addChild(a1, v9); v10 = GameLevelManager::sharedState(); v11 = a2->getTag(a2); GameLevelManager::getGJRewards(v10, v11); } return; } if ( a1->m_leftOpen ) goto LABEL_3; m_rightLabel = a1->m_leftLabel; LABEL_8: if ( m_rightLabel ) { cocos2d::CCNode::stopAllActions(m_rightLabel); v6 = m_rightLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; strcpy(v13, "K"); setColor = v6->setColor; v12 = -1; setColor(m_rightLabel, (const cocos2d::ccColor3B *)&v12); v8 = cocos2d::CCTintTo::create(1.0, 0xFFu, 0xFFu, 0xFFu); cocos2d::CCNode::runAction(m_rightLabel, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source