// // ShaderLayer::visit from 0x9f79c8 to 0x9f7c10 (584 bytes) // // 2 xrefs: // > @ 0x52248 // > @ 0x11cf360 // // 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 ShaderLayer::visit(ShaderLayer *a1) { cocos2d::CCDirector *v2; // x0 float v3; // s0 float v4; // s8 cocos2d::CCDirector *v5; // x0 _QWORD *v6; // x0 cocos2d::CCGridBase *m_pGrid; // x0 unsigned int v8; // w19 cocos2d::CCGLProgram *v9; // x0 cocos2d::CCGLProgram *v10; // x0 cocos2d::ccArray *data; // x21 unsigned int num; // w2 cocos2d::CCSprite *v13; // x0 cocos2d::CCSprite *m_sprite; // x23 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCGridBase *v16; // x0 cocos2d::CCDirector *v17; // x0 char v18[8]; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCPoint v19; // [xsp+70h] [xbp+70h] BYREF __int64 v20; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v21; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCRect v22; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v23; // 0:s0.4,4:s1.4 if ( a1->m_bVisible ) { v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getContentScaleFactor(v2); v4 = v3; v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setContentScaleFactor(v5, a1->m_scaleFactor); ShaderLayer::prepareTargetContainer(a1); cocos2d::CCPoint::CCPoint( &v22.origin, a1->m_targetTextureSizeExtra.width * 0.5, a1->m_targetTextureSizeExtra.height * 0.5); v6 = cocos2d::CCPoint::operator+(&v19, v18, &v22); kmGLPushMatrix(v6); m_pGrid = a1->m_pGrid; if ( m_pGrid && m_pGrid->m_bActive ) cocos2d::CCGridBase::beforeDraw(m_pGrid); v8 = 0; cocos2d::CCNode::transform(a1); v9 = a1->m_sprite->getShaderProgram(a1->m_sprite); cocos2d::CCGLProgram::use(v9); v10 = a1->m_sprite->getShaderProgram(a1->m_sprite); cocos2d::CCGLProgram::setUniformsForBuiltins(v10); cocos2d::CCPoint::CCPoint(&v22.origin, &v19); ShaderLayer::updateEffectOffsets(a1, v23); ShaderLayer::preSplitScreenShader(a1); cocos2d::CCRenderTexture::beginWithClear(a1->m_renderTexture, 0.0, 0.0, 0.0, 0.0); data = a1->m_pChildren->data; num = data->num; if ( data->num ) { do { v13 = (cocos2d::CCSprite *)data->arr[v8]; if ( v13 != a1->m_sprite ) { v13->visit(v13); num = data->num; } ++v8; } while ( v8 < num ); } cocos2d::CCRenderTexture::end(a1->m_renderTexture); cocos2d::CCRect::CCRect(&v22, &a1->m_sprite->m_obRect); m_sprite = a1->m_sprite; setPosition = m_sprite->setPosition; cocos2d::CCPoint::CCPoint( &v21, v22.origin.x / a1->m_state.m_textureScaleX, v22.origin.y / a1->m_state.m_textureScaleY); cocos2d::CCPoint::operator+(&v20, v18, &v21); setPosition(m_sprite, (const cocos2d::CCPoint *)&v20); a1->m_sprite->visit(a1->m_sprite); a1->m_uOrderOfArrival = 0; v16 = a1->m_pGrid; if ( v16 ) { if ( v16->m_bActive ) cocos2d::CCGridBase::afterDraw(v16, a1); } kmGLPopMatrix(); ShaderLayer::resetTargetContainer(a1); v17 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setContentScaleFactor(v17, v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source