// // CCScrollLayerExt::updateIndicators from 0x100300ac8 to 0x100300cec (548 bytes) // // 1 xrefs: // > CCScrollLayerExt::CCScrollLayerExt @ 0x100300a64 // // 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::updateIndicators(CCScrollLayerExt *a1, float a2) { double *v3; // x0 double v4; // d0 double *v5; // x0 __int64 v6; // x0 float v7; // s8 float v8; // s9 float v9; // s10 __int64 *v10; // x0 __n128 v11; // q0 __n128 v12; // q1 float *v13; // x0 float v14; // s8 float v15; // s9 float v16; // s10 __int64 *v17; // x0 __n128 v18; // q1 __n128 v19; // q0 int v20; // [xsp+8h] [xbp-58h] BYREF __int64 v21; // [xsp+10h] [xbp-50h] BYREF float v22; // [xsp+18h] [xbp-48h] BYREF float v23; // [xsp+1Ch] [xbp-44h] __int64 v24; // [xsp+20h] [xbp-40h] BYREF __int64 v25; // [xsp+28h] [xbp-38h] BYREF ((void (__fastcall *)(cocos2d::CCLayerColor *, bool, float))a1->m_horizontalScrollbar->setVisible)( a1->m_horizontalScrollbar, a1->m_vScrollbarVisible, a2); ((void (__fastcall *)(cocos2d::CCLayerColor *, bool))a1->m_verticalScrollbar->setVisible)( a1->m_verticalScrollbar, a1->m_hScrollbarVisible); v3 = (double *)((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer); v4 = sub_100022AFC(&v25, v3); v5 = (double *)((__int64 (__fastcall *)(CCScrollLayerExt *, double))a1->getContentSize)(a1, v4); sub_100022AFC(&v24, v5); if ( a1->m_hScrollbarVisible ) { sub_100022988(&v22, 4.0, (float)(*((float *)&v24 + 1) * *((float *)&v24 + 1)) / *((float *)&v25 + 1)); ((void (__fastcall *)(cocos2d::CCLayerColor *, float *))a1->m_verticalScrollbar->setContentSize)( a1->m_verticalScrollbar, &v22); v6 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer); v7 = *((float *)&v24 + 1); v8 = *(float *)(v6 + 4) - *((float *)&v24 + 1); v9 = v23; v10 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayerColor *))a1->m_verticalScrollbar->getPosition)(a1->m_verticalScrollbar); sub_1000229B8(&v21, v10); v11.n128_u32[0] = v21; v12.n128_f64[0] = (float)(*((float *)&v24 + 1) - (float)((float)(v9 * v8) / v7)) + v23 * -0.5; v12.n128_f32[0] = v12.n128_f64[0]; sub_100022980(v11, v12, &v20); ((void (__fastcall *)(cocos2d::CCLayerColor *, int *))a1->m_verticalScrollbar->setPosition)( a1->m_verticalScrollbar, &v20); } if ( a1->m_vScrollbarVisible ) { sub_100022988(&v22, (float)(*(float *)&v24 * *(float *)&v24) / *(float *)&v25, 4.0); ((void (__fastcall *)(cocos2d::CCLayerColor *, float *))a1->m_horizontalScrollbar->setContentSize)( a1->m_horizontalScrollbar, &v22); v13 = (float *)((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer); v14 = *(float *)&v24; v15 = *v13 - *(float *)&v24; v16 = v22; v17 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayerColor *))a1->m_horizontalScrollbar->getPosition)(a1->m_horizontalScrollbar); sub_1000229B8(&v21, v17); v18.n128_f64[0] = v22 * 0.5; v19.n128_f64[0] = *(float *)&v24 * 0.5 - (float)((float)(v16 * v15) / v14) - v18.n128_f64[0]; v19.n128_f32[0] = v19.n128_f64[0]; v18.n128_u32[0] = HIDWORD(v21); sub_100022980(v19, v18, &v20); ((void (__fastcall *)(cocos2d::CCLayerColor *, int *))a1->m_horizontalScrollbar->setPosition)( a1->m_horizontalScrollbar, &v20); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source