// // cocos2d::extension::CCScrollView::updateInset from 0x1003f8460 to 0x1003f85e8 (392 bytes) // // 1 xrefs: // > cocos2d::extension::CCScrollView::setContentSize @ 0x1003f8447 // // 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 cocos2d::extension::CCScrollView::updateInset(cocos2d::extension::CCScrollView *a1) { float v2; // xmm0_4 float v3; // xmm0_4 double v4; // [rsp-34h] [rbp-34h] BYREF float v5; // [rsp-2Ch] [rbp-2Ch] float width; // [rsp-28h] [rbp-28h] float height; // [rsp-24h] [rbp-24h] if ( a1->m_pContainer ) { sub_10028CBE0((float *)&v4, 0.0, 0.0); sub_10028CC90(&a1->m_fMaxInset, &v4); sub_10028CBE0( (float *)&v4, (float)(a1->m_tViewSize.width * 0.2) + a1->m_fMaxInset.x, (float)(a1->m_tViewSize.height * 0.2) + a1->m_fMaxInset.y); sub_10028CC90(&a1->m_fMaxInset, &v4); width = a1->m_tViewSize.width; height = *(float *)((__int64 (__fastcall *)(cocos2d::CCNode *))a1->m_pContainer->getContentSize)(a1->m_pContainer); v2 = ((float (__fastcall *)(cocos2d::CCNode *))a1->m_pContainer->getScaleX)(a1->m_pContainer); width = width - (float)(v2 * height); height = a1->m_tViewSize.height; v5 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCNode *))a1->m_pContainer->getContentSize)(a1->m_pContainer) + 4); v3 = ((float (__fastcall *)(cocos2d::CCNode *))a1->m_pContainer->getScaleY)(a1->m_pContainer); sub_10028CBE0((float *)&v4, width, height - (float)(v3 * v5)); sub_10028CC90(&a1->m_fMinInset, &v4); sub_10028CBE0( (float *)&v4, a1->m_fMinInset.x - (float)(a1->m_tViewSize.width * 0.2), a1->m_fMinInset.y - (float)(0.2 * a1->m_tViewSize.height)); sub_10028CC90(&a1->m_fMinInset, &v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source