// // CCScrollLayerExt::doConstraintContent from 0x2e87c8 to 0x2e88ca (258 bytes) // // 2 xrefs: // > CCScrollLayerExt::constraintContent @ 0x2e88da // > MPLobbyLayer::updateComments @ 0x535380 // // 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 CCScrollLayerExt::doConstraintContent(CCScrollLayerExt *a1, bool a2) { _BOOL4 v3; // r5 float x; // r7 float y; // s18 float MinY; // s17 float MaxY; // s16 CCScrollLayerExtDelegate *m_delegate; // r0 CCScrollLayerExtDelegate *v9; // r0 cocos2d::CCMoveTo *v10; // r0 cocos2d::CCEaseInOut *v11; // r0 cocos2d::CCSequence *v12; // r8 cocos2d::CCFiniteTimeAction *v13; // r0 CCContentLayer *m_contentLayer; // r4 cocos2d::CCAction *v15; // r0 cocos2d::CCPoint v16; // [sp+4h] [bp-Ch] BYREF v3 = a2; x = a1->m_contentLayer->getPosition(a1->m_contentLayer)->x; y = a1->m_contentLayer->getPosition(a1->m_contentLayer)->y; MinY = CCScrollLayerExt::getMinY(a1); MaxY = CCScrollLayerExt::getMaxY(a1); if ( y <= MaxY ) { if ( y >= MinY ) { m_delegate = a1->m_delegate; if ( m_delegate ) m_delegate->scrollViewDidEndMoving(m_delegate, a1); return; } MaxY = MinY; } cocos2d::CCNode::stopAllActions(a1->m_contentLayer); if ( v3 ) { ((void (__fastcall *)(CCContentLayer *, _DWORD, _DWORD))a1->m_contentLayer->setPosition_0)( a1->m_contentLayer, LODWORD(x), LODWORD(MaxY)); CCScrollLayerExt::scrollingEnd(a1); } else { v9 = a1->m_delegate; if ( v9 ) v9->scrllViewWillBeginDecelerating(v9, a1); cocos2d::CCPoint::CCPoint(&v16, x, MaxY); v10 = cocos2d::CCMoveTo::create(0.3, &v16); v11 = cocos2d::CCEaseInOut::create(v10, 2.0); v16.y = 0.0; LODWORD(v16.x) = CCScrollLayerExt::scrollingEnd; v12 = (cocos2d::CCSequence *)v11; v13 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::scrollingEnd, 0); m_contentLayer = a1->m_contentLayer; v15 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v12, v13, 0); cocos2d::CCNode::runAction(m_contentLayer, v15); } }