// // RewardUnlockLayer::showCollectReward from 0x1403ceb00 to 0x1403cebb4 (180 bytes) // // 2 xrefs: // > RewardsPage::rewardsStatusFinished @ 0x1403cd5ca // > @ 0x1406d7c10 // // 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 // bool RewardUnlockLayer::showCollectReward(RewardUnlockLayer *a1, GJRewardItem *a2) { GJRewardItem *m_rewardItem; // rcx bool v5; // zf if ( !a2 ) return 0; m_rewardItem = a1->m_rewardItem; if ( m_rewardItem ) cocos2d::CCObject::release(m_rewardItem); a1->m_rewardItem = a2; cocos2d::CCObject::retain(a2); if ( a2->m_unk && a2->m_rewardType != a1->m_chestType ) return 0; a1->m_closeBtn->setVisible(a1->m_closeBtn, 0); a1->m_closeBtn->setEnabled(a1->m_closeBtn, 0); a1->m_wrongLabel->setVisible(a1->m_wrongLabel, 0); v5 = !a1->m_animationPlayed; a1->m_rewardCollected = 1; if ( !v5 ) RewardUnlockLayer::playRewardEffect(a1); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source