// // RewardUnlockLayer::showCollectReward from 0x4e9c34 to 0x4e9ca8 (116 bytes) // // 15 xrefs: // > GameManager::rewardedVideoHidden @ 0x32037c // > SupportLayer::onGetReward @ 0x42c8a6 // > DailyLevelPage::claimLevelReward @ 0x4d5726 // > GauntletSelectLayer::onPlay @ 0x4d6e4c // > GJShopLayer::dialogClosed @ 0x4e1e2e // > RewardsPage::rewardsStatusFinished @ 0x4e9cf2 // > SecretLayer3::onChest01 @ 0x4eb328 // > SecretLayer3::onChest02 @ 0x4eb3c4 // > SecretLayer4::onChest01 @ 0x4eff28 // > FollowRewardPage::onSpecialItem @ 0x50080c // > SecretRewardsLayer::onSpecialItem @ 0x585a1c // > SecretRewardsLayer::onSelectItem @ 0x585cf4 // > SecretRewardsLayer::onGoldChest @ 0x587440 // > GJPathRewardPopup::onClaim @ 0x58bbba // > SecretLayer5::claimOnlineReward @ 0x59d470 // // 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) { _BOOL4 m_animationPlayed; // r5 GJRewardItem *m_rewardItem; // r0 if ( !a2 ) goto LABEL_2; 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 ) { a1->m_closeBtn->setVisible(a1->m_closeBtn, 0); a1->m_closeBtn->setEnabled(a1->m_closeBtn, 0); a1->m_wrongLabel->setVisible(a1->m_wrongLabel, 0); m_animationPlayed = a1->m_animationPlayed; a1->m_rewardCollected = 1; if ( m_animationPlayed ) RewardUnlockLayer::playRewardEffect(a1); else LOBYTE(m_animationPlayed) = 1; } else { LABEL_2: LOBYTE(m_animationPlayed) = 0; } return m_animationPlayed; }
GD Web Decomp Icon

GD Web Decomp

Raw Source