// // SetGroupIDLayer::onZLayerShift from 0x100315840 to 0x1003158f2 (178 bytes) // // 2 xrefs: // > SetGroupIDLayer::init @ 0x100313644 // > SetGroupIDLayer::init @ 0x1003137db // // 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 SetGroupIDLayer::onZLayerShift(SetGroupIDLayer *a1, cocos2d::CCObject *a2) { int v3; // eax cocos2d::CCArray *m_targetObjects; // rdi int v5; // r14d int v6; // r12d unsigned int v7; // r14d GameObject *v8; // r15 int v9; // eax v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); m_targetObjects = a1->m_targetObjects; if ( m_targetObjects ) { v5 = v3; if ( (unsigned int)sub_100720070(m_targetObjects) ) { v6 = 4 * (v5 == 1) - 2; v7 = 0; do { v8 = (GameObject *)sub_1007200C0(a1->m_targetObjects, v7); v9 = v6 + GameObject::getObjectZLayer(v8); if ( v9 >= 11 ) v9 = 11; if ( v9 < -4 ) v9 = -5; GameObject::setCustomZLayer(v8, v9); v8->m_updateParents = 1; ++v7; } while ( v7 < (unsigned int)sub_100720070(a1->m_targetObjects) ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source