// // BoomScrollLayer::updateDots from 0x2e1f7c to 0x2e2094 (280 bytes) // // 2 xrefs: // > BoomScrollLayer::setPagesIndicatorPosition @ 0x2e20b0 // > BoomScrollLayer::moveToPageEnded @ 0x2e2110 // // 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::updateDots(BoomScrollLayer *a1, float a2) { int TotalPages; // r0 float y; // r10 int v5; // s16 const cocos2d::CCPoint *v6; // r0 cocos2d::CCPoint v7; // r1 int v8; // r0 int RelativePageForNum; // r9 signed int i; // r5 float x; // s20 int *v12; // r6 int v13; // r3 void (__fastcall *v14)(int *, cocos2d::CCPoint *); // r2 void (__fastcall *v15)(int *, cocos2d::CCPoint *); // [sp+4h] [bp-18h] cocos2d::CCPoint v16; // [sp+Ch] [bp-10h] BYREF if ( a1->m_dots ) { TotalPages = BoomScrollLayer::getTotalPages(a1); y = a1->m_dotPosition.y; v5 = TotalPages; v6 = a1->m_extendedLayer->getPosition(a1->m_extendedLayer); cocos2d::CCPoint::CCPoint(&v16, v6); LODWORD(v7.x) = &v16; v8 = BoomScrollLayer::pageNumberForPosition(a1, v7); RelativePageForNum = v8; if ( a1->m_looped ) RelativePageForNum = BoomScrollLayer::getRelativePageForNum(a1, v8); for ( i = 0; i < v5; ++i ) { x = a1->m_dotPosition.x; if ( (unsigned int)i < cocos2d::CCArray::count(a1->m_dots) ) { v12 = (int *)cocos2d::CCArray::objectAtIndex(a1->m_dots, i); v15 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(*v12 + 92); cocos2d::CCPoint::CCPoint( &v16, x + (float)((float)((float)i - (float)((float)((float)v5 - 1.0) * 0.5)) * 16.0), y); v15(v12, &v16); v13 = *v12; if ( i == RelativePageForNum ) { (*(void (__fastcall **)(int *, void *))(v13 + 472))(v12, &unk_9A96E0); } else { v14 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(v13 + 472); memset(&v16, 125, 3); v14(v12, &v16); } (*(void (__fastcall **)(int *, bool))(*v12 + 164))(v12, a1->m_dotsVisible); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source