// // cocos2d::CCDrawNode::init from 0x5c4df0 to 0x5c4ebe (206 bytes) // // 1 xrefs: // > HardStreak::init @ 0x456c64 // // 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 *v1; // r3 void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // r6 cocos2d::CCShaderCache *v4; // r0 cocos2d::CCGLProgram *v5; // r0 cocos2d::CCNotificationCenter *v6; // r0 a1->m_sBlendFunc.dst = 771; v1 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_sBlendFunc.src = 1; setShaderProgram = v1->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(); cocos2d::CCNotificationCenter::addObserver( v6, a1, (cocos2d::SEL_CallFuncO)(unsigned int)cocos2d::CCDrawNode::listenBackToForeground, "event_come_to_foreground", nullptr); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source