// // SecretRewardsLayer::create from 0x587244 to 0x587300 (188 bytes) // // 1 xrefs: // > SecretRewardsLayer::scene @ 0x587316 // // 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 // SecretRewardsLayer *SecretRewardsLayer::create(bool a1) { SecretRewardsLayer *v2; // r4 SecretRewardsLayer_vtbl *v3; // r3 int *v4; // r0 v2 = (SecretRewardsLayer *)operator new(0x1ACu); cocos2d::CCLayer::CCLayer(v2); v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SecretRewardsLayer_vtbl *)&off_A97998; v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A97BE0; v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A97C18; v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A97C24; v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A97C34; v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A97C44; v2->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&off_A97C58; v2->BoomScrollLayerDelegate::__vftable = (BoomScrollLayerDelegate_vtbl *)&off_A97C64; v2->m_mainLayer = nullptr; v2->m_secondaryLayer = nullptr; v2->m_chestCounter = nullptr; v2->m_chestCounters = nullptr; v2->m_backSprite = nullptr; v2->m_unkSize4_2 = 0; v2->m_secondaryScrollLayer = nullptr; v2->m_scratchDialogIndex = 0; v2->m_potborDialogIndex = 0; v2->m_diamondDialogIndex = 0; v2->m_mechanicDialogIndex = 0; v2->m_inMainLayer = 0; v2->m_rewardType = 0; v2->m_lockedDialogIndex = 0; if ( SecretRewardsLayer::init(v2, a1) ) { cocos2d::CCObject::autorelease(v2); } else { v3 = v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v4 = (int *)v2; v2 = nullptr; v3->~SecretRewardsLayer_0((SecretRewardsLayer *)v4); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source