// // PlayLayer::addToGroupOld from 0x5ccff4 to 0x5cd100 (268 bytes) // // 1 xrefs: // > @ 0xbf7f0 // // 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 v4; // w20 int v5; // w1 PlayLayer *v6; // x0 cocos2d::CCArray *StaticGroup; // x21 int GroupID; // w21 cocos2d::CCArray *Group; // x23 v4 = 0; while ( a2->m_groupCount > v4 ) { while ( 1 ) { GroupID = GameObject::getGroupID(a2, v4); Group = GJBaseGameLayer::getGroup(a1, GroupID); if ( !(unsigned __int8)cocos2d::CCArray::containsObject(Group, a2) ) break; v5 = GroupID; v6 = a1; if ( a2->m_objectType == Decoration ) goto LABEL_8; LABEL_4: StaticGroup = GJBaseGameLayer::getStaticGroup(v6, v5); ++v4; if ( (unsigned __int8)cocos2d::CCArray::containsObject(StaticGroup, a2) ) goto LABEL_5; LABEL_9: cocos2d::CCArray::addObject(StaticGroup, a2); if ( a2->m_groupCount <= v4 ) return; } cocos2d::CCArray::addObject(Group, a2); v5 = GroupID; v6 = a1; if ( a2->m_objectType != Decoration ) goto LABEL_4; LABEL_8: StaticGroup = GJBaseGameLayer::getOptimizedGroup(v6, v5); ++v4; if ( !(unsigned __int8)cocos2d::CCArray::containsObject(StaticGroup, a2) ) goto LABEL_9; LABEL_5: ; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source