// // cocos2d::CCDirector::setOpenGLView from 0x1800c3090 to 0x1800c3159 (201 bytes) // // 6 xrefs: // > cocos2d::CCApplication::setupGLView @ 0x1800769e1 // > @ 0x18014b184 // > @ 0x18014b194 // > @ 0x18014cf68 // > @ 0x1801c3600 // > @ 0x1801c360c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:26 +0000 // void __fastcall cocos2d::CCDirector::setOpenGLView(cocos2d::CCDirector *this, struct cocos2d::CCEGLView *a2) { cocos2d::CCConfiguration *v4; // rbx __int64 v5; // rcx _DWORD *v6; // rax __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rdx if ( *((struct cocos2d::CCEGLView **)this + 24) != a2 ) { v4 = cocos2d::CCConfiguration::sharedConfiguration(); cocos2d::CCConfiguration::gatherGPUInfo(v4); cocos2d::CCConfiguration::dumpInfo(v4); v5 = *((_QWORD *)this + 24); if ( v5 ) cocos2d::CCObject::release((cocos2d::CCObject *)(v5 + 120)); *((_QWORD *)this + 24) = a2; cocos2d::CCObject::retain((struct cocos2d::CCEGLView *)((char *)a2 + 120)); v6 = (_DWORD *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 24) + 80LL))(*((_QWORD *)this + 24)); cocos2d::CCSize::operator=((_DWORD *)this + 80, v6); v7 = *((_QWORD *)this + 24); if ( v7 ) { cocos2d::CCDirector::setGLDefaultValues(this); v7 = *((_QWORD *)this + 24); } v8 = *((_QWORD *)this + 15); v9 = v8 + 56; if ( !v8 ) v9 = 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 88LL))(v7, v9); cocos2d::CCTouchDispatcher::setDispatchEvents(*((cocos2d::CCTouchDispatcher **)this + 15), 1); } }