// // cocos2d::CCDrawNode::init from 0xad90a0 to 0xad91b8 (280 bytes) // // 3 xrefs: // > HardStreak::init @ 0x8263dc // > @ 0xa0980 // > @ 0x12010e0 // // 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 // bool cocos2d::CCDrawNode::init(cocos2d::CCDrawNode *a1) { cocos2d::CCDrawNode_vtbl *v2; // x0 void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // x21 cocos2d::CCShaderCache *v4; // x0 cocos2d::CCGLProgram *v5; // x0 cocos2d::CCNotificationCenter *v6; // x0 cocos2d::SEL_CallFuncO v8; // 0:x2.16 v2 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_sBlendFunc.dst = 771; a1->m_sBlendFunc.src = 1; setShaderProgram = v2->setShaderProgram; v4 = cocos2d::CCShaderCache::sharedShaderCache(); v5 = cocos2d::CCShaderCache::programForKey(v4, "ShaderPositionColor"); setShaderProgram(a1, v5); cocos2d::CCDrawNode::ensureCapacity(a1, 0x200u); glGenBuffers(); glBindBuffer(); glBufferData(); glEnableVertexAttribArray(); glVertexAttribPointer(); glEnableVertexAttribArray(); glVertexAttribPointer(); glBindBuffer(); a1->m_bDirty = 1; v6 = cocos2d::CCNotificationCenter::sharedNotificationCenter(); v8.adj = 0; v8.ptr = (void (__cdecl *)(cocos2d::CCObject *))cocos2d::CCDrawNode::listenBackToForeground; cocos2d::CCNotificationCenter::addObserver(v6, a1, v8, "event_come_to_foreground", nullptr); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source