// // CCScrollLayerExt::doConstraintContent from 0x10042e8b0 to 0x10042ea4e (414 bytes) // // 7 xrefs: // > CCScrollLayerExt::constraintContent @ 0x10042e8a7 // > CCScrollLayerExt::setContentOffset @ 0x10042eb40 // > CCScrollLayerExt::ccTouchEnded @ 0x10042ed50 // > CCScrollLayerExt::ccTouchEnded @ 0x10042ee77 // > CCScrollLayerExt::ccTouchCancelled @ 0x10042ef5b // > sub_10042EF80 @ 0x10042ef92 // > MPLobbyLayer::updateComments @ 0x1004945fd // // 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 __fastcall CCScrollLayerExt::doConstraintContent(CCScrollLayerExt *a1, bool a2) { __int64 v3; // rax float m_scrollLimitBottom; // xmm0_4 CCScrollLayerExtDelegate *v5; // rdi CCScrollLayerExtDelegate *v6; // rdi cocos2d::CCMoveTo *v7; // rax cocos2d::CCEaseInOut *v8; // r14 cocos2d::CCCallFunc *v9; // rax CCContentLayer *m_contentLayer; // rbx cocos2d::CCSequence *v11; // rax CCScrollLayerExtDelegate *m_delegate; // rdi cocos2d::CCPoint v13; // [rsp+Ch] [rbp-24h] BYREF float v14; // [rsp+14h] [rbp-1Ch] float v15; // [rsp+18h] [rbp-18h] float v16; // [rsp+1Ch] [rbp-14h] v15 = *(float *)((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer); v16 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4); v14 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1) + 4); v3 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer); m_scrollLimitBottom = a1->m_scrollLimitBottom; if ( v16 <= m_scrollLimitBottom && (m_scrollLimitBottom = (float)(v14 - *(float *)(v3 + 4)) - a1->m_scrollLimitTop, m_scrollLimitBottom <= v16) ) { m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *))m_delegate->scrollViewDidEndMoving)( m_delegate, a1); } else { v16 = m_scrollLimitBottom; cocos2d::CCNode::stopAllActions(a1->m_contentLayer); if ( a2 ) { ((void (__fastcall *)(CCContentLayer *, float, float))a1->m_contentLayer->setPosition_0)( a1->m_contentLayer, v15, v16); cocos2d::CCNode::stopAllActions(a1->m_contentLayer); a1->m_notAtEndOfScroll = 0; v5 = a1->m_delegate; if ( v5 ) ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *))v5->scrollViewDidEndDecelerating)(v5, a1); } else { v6 = a1->m_delegate; if ( v6 ) ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *))v6->scrllViewWillBeginDecelerating)( v6, a1); sub_10028CBE0((float *)&v13, v15, v16); v7 = cocos2d::CCMoveTo::create(0.30000001, &v13); v8 = cocos2d::CCEaseInOut::create(v7, 2.0); v9 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)CCScrollLayerExt::scrollingEnd); m_contentLayer = a1->m_contentLayer; v11 = sub_1003B5760(v8, v9, 0); cocos2d::CCNode::runAction(m_contentLayer, v11); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source