// // RewardUnlockLayer::showCollectReward from 0x1001c4b9c to 0x1001c4c60 (196 bytes) // // 14 xrefs: // > SecretLayer5::claimOnlineReward @ 0x100076ac8 // > GJShopLayer::dialogClosed @ 0x10014d728 // > SupportLayer::onGetReward @ 0x100192d5c // > DailyLevelPage::claimLevelReward @ 0x1001bab38 // > GauntletSelectLayer::onPlay @ 0x1001bfcdc // > RewardsPage::rewardsStatusFinished @ 0x1001c4b1c // > SecretRewardsLayer::onGoldChest @ 0x1002e9e00 // > SecretRewardsLayer::onSpecialItem @ 0x1002ea588 // > SecretRewardsLayer::onSelectItem @ 0x1002eb530 // > SecretLayer3::onChest01 @ 0x10030fc40 // > SecretLayer3::onChest02 @ 0x10030fd2c // > SecretLayer4::onChest01 @ 0x100355a84 // > GJPathRewardPopup::onClaim @ 0x1003bbd74 // > FollowRewardPage::onSpecialItem @ 0x1004258ec // // 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 __fastcall RewardUnlockLayer::showCollectReward(RewardUnlockLayer *a1, GJRewardItem *a2) { GJRewardItem *m_rewardItem; // x0 bool result; // w0 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; ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_closeBtn->setVisible)(a1->m_closeBtn, 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_closeBtn->setEnabled)(a1->m_closeBtn, 0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_wrongLabel->setVisible)(a1->m_wrongLabel, 0); result = 1; a1->m_rewardCollected = 1; if ( a1->m_animationPlayed ) { RewardUnlockLayer::playRewardEffect(a1); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source