// // ScrollingLayer::getViewRect from 0x5a9808 to 0x5a98f8 (240 bytes) // // 3 xrefs: // > ScrollingLayer::ccTouchBegan @ 0x5a9978 // > ScrollingLayer::visit @ 0x5a9a74 // > @ 0x5a108 // // 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 // cocos2d::CCRect ScrollingLayer::getViewRect(ScrollingLayer *a1) { cocos2d::CCRect *v1; // x8 cocos2d::CCRect *v3; // x21 cocos2d::CCLayer *m_parentLayer; // x0 float v5; // s0 cocos2d::CCLayer *v6; // x0 float v7; // s8 float v8; // s6 float v13; // [xsp+30h] [xbp+30h] float v14; // [xsp+34h] [xbp+34h] cocos2d::CCPoint v15; // 0:kr00_8.8 cocos2d::CCRect result; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v3 = v1; v15 = cocos2d::CCNode::convertToWorldSpace(a1, &stru_1241C88); m_parentLayer = a1->m_parentLayer; if ( m_parentLayer ) { v5 = ((float (__fastcall *)(cocos2d::CCLayer *, float, float))m_parentLayer->getScaleX)(m_parentLayer, v15.x, v15.y); v6 = a1->m_parentLayer; v7 = v5; v8 = 1.0; if ( v6 ) v8 = v6->getScaleY(v6); } else { v7 = 1.0; v8 = 1.0; } cocos2d::CCRect::CCRect( v3, (float)(v13 + (float)(v7 * a1->m_position.x)) - (float)(v7 * (float)(a1->m_size.width * 0.5)), (float)(v14 + (float)(v8 * a1->m_position.y)) - (float)(v8 * (float)(a1->m_size.height * 0.5)), v7 * a1->m_size.width, v8 * a1->m_size.height); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source