// // SetGroupIDLayer::addGroupID from 0x509b98 to 0x509c1c (132 bytes) // // 1 xrefs: // > SetGroupIDLayer::onAddGroup @ 0x509c20 // // 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::addGroupID(SetGroupIDLayer *a1, int a2) { GameObject *m_targetObject; // r0 GameManager *v5; // r0 unsigned int i; // r4 GameObject *v7; // r7 GameManager *v8; // r0 a1->m_addedGroup = 1; m_targetObject = a1->m_targetObject; if ( m_targetObject ) { if ( ((int (__fastcall *)(GameObject *))m_targetObject->addToGroup)(m_targetObject) == 1 ) { v5 = GameManager::sharedState(); v5->m_levelEditorLayer->addToGroup(v5->m_levelEditorLayer, a1->m_targetObject, a2, 0); } } else { for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); ++i ) { v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i); if ( v7->addToGroup(v7, a2) == 1 ) { v8 = GameManager::sharedState(); v8->m_levelEditorLayer->addToGroup(v8->m_levelEditorLayer, v7, a2, 0); } } } SetGroupIDLayer::updateGroupIDButtons(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source