// // cocos2d::CCDirector::setOpenGLView from 0xad7830 to 0xad78fc (204 bytes) // // 2 xrefs: // > AppDelegate::setupGLView @ 0x5bdf5c // > @ 0x30600 // // 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 cocos2d::CCDirector::setOpenGLView(cocos2d::CCDirector *a1, cocos2d::CCEGLView *a2) { cocos2d::CCConfiguration *v4; // x21 cocos2d::CCEGLView *m_pobOpenGLView; // x0 cocos2d::CCEGLView_vtbl *v6; // x1 float *v7; // x0 cocos2d::CCEGLView *v8; // x0 cocos2d::CCTouchDispatcher *m_pTouchDispatcher; // x2 cocos2d::EGLTouchDelegate *v10; // x1 if ( a1->m_pobOpenGLView != a2 ) { v4 = cocos2d::CCConfiguration::sharedConfiguration(); cocos2d::CCConfiguration::gatherGPUInfo(v4); cocos2d::CCConfiguration::dumpInfo(v4); m_pobOpenGLView = a1->m_pobOpenGLView; if ( m_pobOpenGLView ) m_pobOpenGLView->~CCEGLView_0(m_pobOpenGLView); v6 = a2->__vftable; a1->m_pobOpenGLView = a2; v7 = (float *)v6->getDesignResolutionSize(a2); cocos2d::CCSize::operator=(&a1->m_obWinSizeInPoints, v7); cocos2d::CCDirector::createStatsLabel(a1); v8 = a1->m_pobOpenGLView; if ( v8 ) { cocos2d::CCDirector::setGLDefaultValues(a1); v8 = a1->m_pobOpenGLView; } m_pTouchDispatcher = a1->m_pTouchDispatcher; v10 = &m_pTouchDispatcher->cocos2d::EGLTouchDelegate; if ( !m_pTouchDispatcher ) v10 = nullptr; v8->setTouchDelegate(v8, v10); cocos2d::CCTouchDispatcher::setDispatchEvents(a1->m_pTouchDispatcher, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source