// // cocos2d::CCLayer::onEnter from 0x180050570 to 0x18005067b (267 bytes) // // 8 xrefs: // > @ 0x1800ed198 // > @ 0x1800ed658 // > @ 0x1800edb90 // > @ 0x1800ee0f8 // > @ 0x1800ee6d0 // > @ 0x1800f6fa0 // > @ 0x1801438a8 // > @ 0x1801b1fd4 // // 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 // void __fastcall cocos2d::CCLayer::onEnter(cocos2d::CCLayer *this) { struct cocos2d::CCDirector *v2; // rsi struct cocos2d::CCAccelerometerDelegate *v3; // rbx cocos2d::CCAccelerometer *v4; // rax struct cocos2d::CCKeypadDelegate *v5; // rbx cocos2d::CCKeypadDispatcher *v6; // rax cocos2d::CCKeyboardDelegate *v7; // rbx cocos2d::CCKeyboardDispatcher *v8; // rax struct cocos2d::CCMouseDelegate *v9; // rbx cocos2d::CCMouseDispatcher *v10; // rax v2 = cocos2d::CCDirector::sharedDirector(); if ( this->m_bTouchEnabled ) ((void (__fastcall *)(cocos2d::CCLayer *))this->registerWithTouchDispatcher)(this); cocos2d::CCNode::onEnter(this); if ( this->m_bAccelerometerEnabled ) { v3 = &this->cocos2d::CCAccelerometerDelegate; if ( !this ) v3 = nullptr; v4 = (cocos2d::CCAccelerometer *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getAccelerometer)(v2); cocos2d::CCAccelerometer::setDelegate(v4, v3); } if ( this->m_bKeypadEnabled ) { v5 = &this->cocos2d::CCKeypadDelegate; if ( !this ) v5 = nullptr; v6 = (cocos2d::CCKeypadDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getKeypadDispatcher)(v2); cocos2d::CCKeypadDispatcher::addDelegate(v6, v5); } if ( this->m_bKeyboardEnabled ) { v7 = &this->cocos2d::CCKeyboardDelegate; if ( !this ) v7 = nullptr; v8 = (cocos2d::CCKeyboardDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getKeyboardDispatcher)(v2); cocos2d::CCKeyboardDispatcher::addDelegate(v8, (cocos2d::CCObject_vtbl *)v7); } if ( this->m_bMouseEnabled ) { v9 = &this->cocos2d::CCMouseDelegate; if ( !this ) v9 = nullptr; v10 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getMouseDispatcher)(v2); cocos2d::CCMouseDispatcher::addDelegate(v10, v9); } }