// // cocos2d::CCDirector::setOpenGLView from 0x1800bf860 to 0x1800bf92a (202 bytes) // // 6 xrefs: // > cocos2d::CCApplication::setupGLView @ 0x180073d53 // > @ 0x180141e18 // > @ 0x180141e28 // > @ 0x1801438a8 // > @ 0x1801b933c // > @ 0x1801b9348 // // 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::CCDirector::setOpenGLView(cocos2d::CCDirector *this, struct cocos2d::CCEGLView *a2) { cocos2d::CCConfiguration *v4; // rbx cocos2d::CCEGLView *m_pobOpenGLView; // rcx _DWORD *v6; // rax cocos2d::CCEGLView *v7; // rcx cocos2d::CCTouchDispatcher *m_pTouchDispatcher; // rax cocos2d::EGLTouchDelegate *v9; // rdx if ( this->m_pobOpenGLView != a2 ) { v4 = cocos2d::CCConfiguration::sharedConfiguration(); cocos2d::CCConfiguration::gatherGPUInfo(v4); cocos2d::CCConfiguration::dumpInfo(v4); m_pobOpenGLView = this->m_pobOpenGLView; if ( m_pobOpenGLView ) cocos2d::CCObject::release((cocos2d::CCObject *)&m_pobOpenGLView->m_idk1); this->m_pobOpenGLView = a2; cocos2d::CCObject::retain((cocos2d::CCObject *)&a2->m_idk1); v6 = (_DWORD *)((__int64 (__fastcall *)(cocos2d::CCEGLView *))this->m_pobOpenGLView->getDesignResolutionSize)(this->m_pobOpenGLView); cocos2d::CCSize::operator=(&this->m_obWinSizeInPoints, v6); v7 = this->m_pobOpenGLView; if ( v7 ) { cocos2d::CCDirector::setGLDefaultValues(this); v7 = this->m_pobOpenGLView; } m_pTouchDispatcher = this->m_pTouchDispatcher; v9 = &m_pTouchDispatcher->cocos2d::EGLTouchDelegate; if ( !m_pTouchDispatcher ) v9 = nullptr; ((void (__fastcall *)(cocos2d::CCEGLView *, cocos2d::EGLTouchDelegate *))v7->setTouchDelegate)(v7, v9); cocos2d::CCTouchDispatcher::setDispatchEvents(this->m_pTouchDispatcher, 1); } }