// // cocos2d::CCProgressTimer::initWithSprite from 0x5d7db0 to 0x5d7e52 (162 bytes) // // 1 xrefs: // > cocos2d::CCProgressTimer::create @ 0x5d7e72 // // 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::CCProgressTimer::initWithSprite(cocos2d::CCProgressTimer *a1, cocos2d::CCSprite *a2) { cocos2d::CCPoint v4; // r1 cocos2d::CCProgressTimer_vtbl *v5; // r3 void (__fastcall *setMidpoint)(cocos2d::CCProgressTimer *__hidden, cocos2d::CCPoint); // r7 int v7; // r2 bool v8; // r3 void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // r5 cocos2d::CCShaderCache *v10; // r0 cocos2d::CCGLProgram *v11; // r0 cocos2d::CCPoint v13; // [sp+4h] [bp-Ch] BYREF LODWORD(v13.x) = a2; cocos2d::CCProgressTimer::setPercentage(a1, 0.0); a1->m_pVertexData = nullptr; a1->m_nVertexDataCount = 0; cocos2d::CCPoint::CCPoint(&v13, 0.5, 0.5); LODWORD(v4.x) = &v13; cocos2d::CCProgressTimer::setAnchorPoint(a1, v4); v5 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_eType = kCCProgressTimerTypeRadial; a1->m_bReverseDirection = 0; setMidpoint = v5->setMidpoint; cocos2d::CCPoint::CCPoint(&v13, 0.5, 0.5); ((void (__fastcall *)(cocos2d::CCProgressTimer *, cocos2d::CCPoint *))setMidpoint)(a1, &v13); cocos2d::CCPoint::CCPoint(&v13, 1.0, 1.0); cocos2d::CCPoint::operator=(&a1->m_tBarChangeRate, &v13.x, v7, v8); cocos2d::CCProgressTimer::setSprite(a1, a2); setShaderProgram = a1->setShaderProgram; v10 = cocos2d::CCShaderCache::sharedShaderCache(); v11 = cocos2d::CCShaderCache::programForKey(v10, "ShaderPositionTextureColor"); setShaderProgram(a1, v11); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source