// // PlayLayer::addToGroupOld from 0x3115c4 to 0x311636 (114 bytes) // // 0 xrefs: // // 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 PlayLayer::addToGroupOld(PlayLayer *a1, GameObject *a2) { int i; // r5 int GroupID; // r7 cocos2d::CCArray *Group; // r8 cocos2d::CCArray *OptimizedGroup; // r0 cocos2d::CCArray *v8; // r7 if ( a2->m_groupCount > 0 ) { for ( i = 0; i < a2->m_groupCount; ++i ) { GroupID = GameObject::getGroupID(a2, i); Group = GJBaseGameLayer::getGroup(a1, GroupID); if ( !cocos2d::CCArray::containsObject(Group, a2) ) cocos2d::CCArray::addObject(Group, a2); if ( a2->m_objectType == Decoration ) OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(a1, GroupID); else OptimizedGroup = GJBaseGameLayer::getStaticGroup(a1, GroupID); v8 = OptimizedGroup; if ( !cocos2d::CCArray::containsObject(OptimizedGroup, a2) ) cocos2d::CCArray::addObject(v8, a2); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source