// // CCScrollLayerExt::doConstraintContent from 0x140047180 to 0x140047325 (421 bytes) // // 7 xrefs: // > CCScrollLayerExt::constraintContent @ 0x140047172 // > CCScrollLayerExt::ccTouchEnded @ 0x1400478f3 // > CCScrollLayerExt::ccTouchEnded @ 0x140047967 // > CCScrollLayerExt::ccTouchCancelled @ 0x1400479a2 // > TableView::ccTouchCancelled @ 0x1400754b7 // > CustomListView::setupList @ 0x1400ac1c9 // > @ 0x1406c48b4 // // 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) { float v2; // xmm3_4 float x; // xmm8_4 float y; // xmm7_4 const cocos2d::CCSize *v7; // rbx const cocos2d::CCSize *v8; // rax float m_scrollLimitBottom; // xmm6_4 CCScrollLayerExtDelegate *m_delegate; // rcx CCScrollLayerExtDelegate *v11; // rcx const struct cocos2d::CCPoint *v12; // rax struct cocos2d::CCMoveTo *v13; // rax struct cocos2d::CCEaseInOut *v14; // rbx __int64 v15; // rax struct cocos2d::CCSequence *v16; // rax cocos2d::ccColor3B *v17; // r8 CCScrollLayerExtDelegate *v18; // rcx float v19; // [rsp+20h] [rbp-38h] cocos2d::CCPoint v20; // [rsp+60h] [rbp+8h] BYREF x = a1->m_contentLayer->getPosition_0(a1->m_contentLayer)->x; y = a1->m_contentLayer->getPosition_0(a1->m_contentLayer)->y; v7 = a1->getContentSize(a1); v8 = a1->m_contentLayer->getContentSize(a1->m_contentLayer); m_scrollLimitBottom = a1->m_scrollLimitBottom; if ( y > m_scrollLimitBottom ) { LABEL_4: cocos2d::CCNode::stopAllActions(a1->m_contentLayer); if ( a2 ) { ((void (__fastcall *)(CCContentLayer *))a1->m_contentLayer->setPosition)(a1->m_contentLayer); cocos2d::CCNode::stopAllActions(a1->m_contentLayer); m_delegate = a1->m_delegate; a1->m_notAtEndOfScroll = 0; if ( m_delegate ) m_delegate->scrollViewDidEndDecelerating(m_delegate, a1); } else { v11 = a1->m_delegate; if ( v11 ) v11->scrllViewWillBeginDecelerating(v11, a1); cocos2d::CCPoint::CCPoint(&v20, x, m_scrollLimitBottom); v13 = cocos2d::CCMoveTo::create(0.30000001, v12); v14 = cocos2d::CCEaseInOut::create(v13, 2.0); v15 = cocos2d::CCCallFunc::create(a1, CCScrollLayerExt::scrollingEnd); v16 = cocos2d::CCSequence::create(v14, v15, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_contentLayer, (cocos2d::CCPoint)v16, v17, v2, v19); } return; } if ( (float)((float)(v7->height - v8->height) - a1->m_scrollLimitTop) > y ) { m_scrollLimitBottom = (float)(v7->height - v8->height) - a1->m_scrollLimitTop; goto LABEL_4; } v18 = a1->m_delegate; if ( v18 ) v18->scrollViewDidEndMoving(v18, a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source