// // DrawGridLayer::getPortalMinMax from 0x665b9c to 0x665c5c (192 bytes) // // 2 xrefs: // > DrawGridLayer::draw @ 0x666c1c // > @ 0xac2c0 // // 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::CCPoint DrawGridLayer::getPortalMinMax(DrawGridLayer *a1, GameObject *a2) { cocos2d::CCPoint *v2; // x8 cocos2d::CCPoint *v4; // x20 float v5; // s8 float v6; // s0 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = v2; if ( a2->getType(a2) == BallPortal ) { v5 = 240.0; } else if ( a2->getType(a2) == SpiderPortal ) { v5 = 270.0; } else { v5 = 300.0; } v6 = floorf((float)((float)(a2->getPosition(a2)->y - (float)(v5 * 0.5)) + 0.0) / 30.0) * 30.0; if ( v6 <= 90.0 ) v6 = 90.0; cocos2d::CCPoint::CCPoint(v4, v6, v5 + v6); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source