// // BoomScrollLayer::updatePages from 0x2e1d8c to 0x2e1e58 (204 bytes) // // 3 xrefs: // > BoomScrollLayer::addPage @ 0x2e28cc // > BoomScrollLayer::removePage @ 0x2e291a // > BoomScrollLayer::init @ 0x2e2d74 // // 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 BoomScrollLayer::updatePages(BoomScrollLayer *a1) { unsigned int i; // r8 cocos2d::CCNode *v3; // r4 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r9 cocos2d::CCDirector *v6; // r0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 const cocos2d::CCSize *v8; // r0 cocos2d::CCPoint v9; // [sp+4h] [bp-10h] BYREF for ( i = 0; i < cocos2d::CCArray::count(a1->m_pages); ++i ) { v3 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_pages, i); setAnchorPoint = v3->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v9, 0.0, 0.0); setAnchorPoint(v3, &v9); setContentSize = v3->setContentSize; v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCSize *)&v9, v6); setContentSize(v3, (const cocos2d::CCSize *)&v9); setPosition = v3->setPosition; v8 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(&v9, (float)(int)i * (float)(v8->width - a1->m_pageOffset), 0.0); setPosition(v3, &v9); if ( !v3->getParent(v3) ) a1->m_extendedLayer->addChild(a1->m_extendedLayer, v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source