// // DrawGridLayer::getPortalMinMax from 0x100369744 to 0x100369804 (192 bytes) // // 1 xrefs: // > DrawGridLayer::draw @ 0x10036a448 // // 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 __fastcall DrawGridLayer::getPortalMinMax(DrawGridLayer *a1, GameObject *a2) { _DWORD *v2; // x8 _DWORD *v4; // x19 float v5; // s8 __n128 v6; // q0 __n128 v7; // q1 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = v2; if ( ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 16 ) { v5 = 240.0; } else if ( ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 33 ) { v5 = 270.0; } else { v5 = 300.0; } v6.n128_f32[0] = fmaxf( floorf( (float)((float)(*(float *)(((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2) + 4) + (float)(v5 * -0.5)) + 0.0) / 30.0) * 30.0, 90.0); v7.n128_f32[0] = v5 + v6.n128_f32[0]; sub_100022980(v6, v7, v4); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source