// // RewardUnlockLayer::create from 0x4e8f78 to 0x4e906a (242 bytes) // // 16 xrefs: // > GameManager::rewardedVideoHidden @ 0x320344 // > GameManager::rewardedVideoHidden @ 0x3203c8 // > SupportLayer::onGetReward @ 0x42c88e // > DailyLevelPage::claimLevelReward @ 0x4d570e // > GauntletSelectLayer::onPlay @ 0x4d6e34 // > GJShopLayer::dialogClosed @ 0x4e1e16 // > RewardsPage::onReward @ 0x4e90ec // > SecretLayer3::onChest01 @ 0x4eb310 // > SecretLayer3::onChest02 @ 0x4eb3ac // > SecretLayer4::onChest01 @ 0x4eff10 // > FollowRewardPage::onSpecialItem @ 0x5007f2 // > SecretRewardsLayer::onSpecialItem @ 0x585a02 // > SecretRewardsLayer::onSelectItem @ 0x585cdc // > SecretRewardsLayer::onGoldChest @ 0x587428 // > GJPathRewardPopup::onClaim @ 0x58bb88 // > SecretLayer5::claimOnlineReward @ 0x59d442 // // 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 // RewardUnlockLayer *RewardUnlockLayer::create(int a1, RewardsPage *a2) { RewardUnlockLayer *v4; // r4 RewardUnlockLayer_vtbl *v5; // r3 int *v6; // r0 v4 = (RewardUnlockLayer *)operator new(0x21Cu); cocos2d::CCLayerColor::CCLayerColor(v4); v4->m_controlConnected = -1; v4->m_joystickConnected = -1; v4->m_buttonMenu = nullptr; v4->m_alertProtocol = nullptr; v4->m_scene = nullptr; v4->m_reverseKeyBack = 0; v4->m_mainLayer = nullptr; v4->m_ZOrder = 0; v4->m_noElasticity = 0; v4->m_button1 = nullptr; v4->m_button2 = nullptr; v4->m_scrollingLayer = nullptr; v4->m_containsBorder = 0; v4->m_noAction = 0; v4->m_forcePrioRegistered = 0; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RewardUnlockLayer_vtbl *)&off_A7A110; v4->m_backgroundObjects = nullptr; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A7A3A4; v4->m_rewardsPage = nullptr; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A7A3DC; v4->m_chestSprite = nullptr; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A7A3E8; v4->m_chestType = 0; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A7A3F8; v4->m_rewardCollected = 0; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A7A408; v4->m_animationPlayed = 0; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A7A41C; v4->m_rewardItem = nullptr; v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A7A45C; v4->CurrencyRewardDelegate::__vftable = (CurrencyRewardDelegate_vtbl *)&off_A7A46C; v4->m_unkFloat = 0.0; if ( RewardUnlockLayer::init(v4, a1, a2) ) { cocos2d::CCObject::autorelease(v4); } else { v5 = v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6 = (int *)v4; v4 = nullptr; v5->~RewardUnlockLayer_0((RewardUnlockLayer *)v6); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source