// // BoomScrollLayer::init from 0x14003d280 to 0x14003d5e5 (869 bytes) // // 2 xrefs: // > BoomScrollLayer::create @ 0x14003d230 // > @ 0x1406c3f78 // // 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 // // Hidden C++ exception states: #wind=1 bool BoomScrollLayer::init( BoomScrollLayer *a1, cocos2d::CCArray *a2, int a3, bool a4, cocos2d::CCArray *a5, DynamicScrollDelegate *a6) { bool result; // al ExtendedLayer *v10; // rbx signed int v11; // esi _BOOL8 v12; // rdx cocos2d::CCDirector *v13; // rax const cocos2d::CCSize *v14; // rax __int64 v15; // rax cocos2d::CCDirector *v16; // rax float v17; // xmm6_4 cocos2d::CCDirector *v18; // rax float *WinSize; // rax __int64 v20; // rax struct cocos2d::CCSpriteBatchNode *v21; // r14 __int64 v22; // rcx cocos2d::CCArray *v23; // rax cocos2d::CCArray *v24; // rcx struct cocos2d::CCSprite *v25; // rbx ExtendedLayer *v26; // [rsp+30h] [rbp-48h] BYREF cocos2d::CCRect v27; // [rsp+40h] [rbp-38h] BYREF result = cocos2d::CCLayer::init(a1); if ( result ) { v10 = (ExtendedLayer *)operator new(0x1A0u); v26 = v10; cocos2d::CCLayer::CCLayer(v10); v10->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ExtendedLayer_vtbl *)&ExtendedLayer::`vftable'; v10->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&ExtendedLayer::`vftable'; v10->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&ExtendedLayer::`vftable'; v10->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&ExtendedLayer::`vftable'; v10->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&ExtendedLayer::`vftable'; v10->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&ExtendedLayer::`vftable'; v11 = 0; v10->m_delegate = nullptr; if ( cocos2d::CCLayer::init(v10) ) { cocos2d::CCObject::autorelease(v10); } else { ((void (__fastcall *)(ExtendedLayer *, __int64))v10->~ExtendedLayer)(v10, 1); v10 = nullptr; } a1->m_extendedLayer = v10; a1->addChild_1(a1, v10); a1->m_eObjType = 4; LOBYTE(v12) = 1; a1->setTouchEnabled(a1, v12); a1->m_cancelAndStealTouch = 1; a1->m_minimumTouchLengthToSlide = 40.0; a1->m_minimumTouchLengthToChangePage = 100.0; v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(); a1->m_width = **(float **)&cocos2d::CCDirector::getWinSize(v13); a1->m_dotsVisible = 1; v14 = a1->getContentSize(a1); v15 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v14->width * 0.5, 60.0); cocos2d::CCPoint::operator=(&a1->m_dotPosition, v15); BoomScrollLayer::updateDots(a1, 0.0); a1->m_normalPageColor = (cocos2d::ccColor4B)-6908266; a1->m_selectedPageColor = (cocos2d::ccColor4B)-1; v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(); v17 = *(float *)(*(_QWORD *)&cocos2d::CCDirector::getWinSize(v16) + 4LL); v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(); WinSize = (float *)cocos2d::CCDirector::getWinSize(v18); v20 = cocos2d::CCRect::CCRect(&v27, 0.0, 0.0, *WinSize, v17); cocos2d::CCRect::operator=(&a1->m_rect, v20); *(_QWORD *)&a1->m_page = 0; a1->m_unkFloat1 = 0.30000001; a1->m_minSpeed = 0.40000001; a1->m_maxSpeed = 0.60000002; a1->m_pages = a2; cocos2d::CCObject::retain(a2); v21 = cocos2d::CCSpriteBatchNode::create("smallDot.png"); a1->addChild_0(a1, v21, 5); BoomScrollLayer::updatePages(a1); a1->m_looped = a4; if ( a4 ) BoomScrollLayer::repositionPagesLooped(a1); if ( a5 ) BoomScrollLayer::setupDynamicScrolling(a1, a5, a6); v23 = (cocos2d::CCArray *)cocos2d::CCArray::create(v22); a1->m_dots = v23; cocos2d::CCObject::retain(v23); while ( 1 ) { v24 = a1->m_dynamic ? a1->m_dynamicObjects : a1->m_pages; if ( v11 >= (int)cocos2d::CCArray::count(v24) ) break; v25 = cocos2d::CCSprite::create("smallDot.png"); v21->addChild_1(v21, v25); cocos2d::CCArray::addObject(a1->m_dots, v25); ++v11; } cocos2d::CCNode::schedule(a1, BoomScrollLayer::updateDots); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source