// // BoomScrollLayer::updateDots from 0x56d6e0 to 0x56d8a0 (448 bytes) // // 5 xrefs: // > BoomScrollLayer::setPagesIndicatorPosition @ 0x56d8c8 // > BoomScrollLayer::moveToPageEnded @ 0x56d964 // > @ 0x97ed8 // > BoomScrollLayer::init @ 0x56ec24 // > @ 0x122d320 // // 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; // w22 float y; // s10 const cocos2d::CCPoint *v5; // x0 int RelativePageForNum; // w26 unsigned int i; // w19 float x; // s8 __int64 v9; // x21 void (__fastcall *v10)(__int64, cocos2d::CCPoint *); // x28 __int64 v11; // x2 void (__fastcall *v12)(__int64, cocos2d::CCPoint *); // x2 cocos2d::CCPoint v13; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCPoint v14; // 0:s0.4,4:s1.4 if ( a1->m_dots ) { TotalPages = BoomScrollLayer::getTotalPages(a1); y = a1->m_dotPosition.y; v5 = a1->m_extendedLayer->getPosition(a1->m_extendedLayer); cocos2d::CCPoint::CCPoint(&v13, v5); RelativePageForNum = BoomScrollLayer::pageNumberForPosition(a1, v14); if ( a1->m_looped ) RelativePageForNum = BoomScrollLayer::getRelativePageForNum(a1, RelativePageForNum); if ( TotalPages > 0 ) { for ( i = 0; i != TotalPages; ++i ) { while ( 1 ) { x = a1->m_dotPosition.x; if ( i < (unsigned int)cocos2d::CCArray::count(a1->m_dots) ) break; if ( ++i == TotalPages ) return; } v9 = cocos2d::CCArray::objectAtIndex(a1->m_dots, i); v10 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint( &v13, x + (float)((float)((float)(int)i - (float)((float)((float)TotalPages - 1.0) * 0.5)) * 16.0), y); v10(v9, &v13); v11 = *(_QWORD *)v9; if ( i == RelativePageForNum ) { (*(void (__fastcall **)(__int64, _UNKNOWN **))(v11 + 944))(v9, &off_E9EF80); } else { v12 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(v11 + 944); memset(&v13, 125, 3); v12(v9, &v13); } (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 328LL))(v9, a1->m_dotsVisible); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source