// // SetGroupIDLayer::onZLayerShift from 0x9746d0 to 0x974794 (196 bytes) // // 3 xrefs: // > @ 0xbeef0 // > SetGroupIDLayer::init @ 0x9791dc // > @ 0x122e9f8 // // 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 SetGroupIDLayer::onZLayerShift(SetGroupIDLayer *a1, cocos2d::CCObject *a2) { int v3; // w21 cocos2d::CCArray *m_targetObjects; // x0 unsigned int v5; // w27 GameObject *v6; // x19 ZLayer ObjectZLayer; // w0 int v8; // w1 int v9; // w1 bool v10; // cf unsigned int v11; // w1 v3 = a2->getTag(a2); m_targetObjects = a1->m_targetObjects; if ( m_targetObjects ) { v5 = 0; while ( 1 ) { v10 = v5 >= (unsigned int)cocos2d::CCArray::count(m_targetObjects); v11 = v5++; if ( v10 ) break; v6 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v11); ObjectZLayer = GameObject::getObjectZLayer(v6); if ( v3 == 1 ) v8 = 2; else v8 = -2; v9 = v8 + ObjectZLayer; if ( v9 > 11 ) v9 = 11; if ( v9 < -5 ) v9 = -5; GameObject::setCustomZLayer(v6, v9); m_targetObjects = a1->m_targetObjects; v6->m_updateParents = 1; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source