// // GJBaseGameLayer::moveObjectToStaticGroup from 0x863e34 to 0x863f10 (220 bytes) // // 3 xrefs: // > GJBaseGameLayer::optimizeMoveGroups @ 0x8817fc // > GJBaseGameLayer::optimizeMoveGroups @ 0x881870 // > @ 0x7c380 // // 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 GJBaseGameLayer::moveObjectToStaticGroup(GJBaseGameLayer *a1, GameObject *a2) { int m_groupCount; // w2 int v5; // w20 int v6; // w1 int GroupID; // w21 cocos2d::CCArray *StaticGroup; // x23 cocos2d::CCArray *OptimizedGroup; // x21 if ( a2->m_isDecoration2 ) { m_groupCount = a2->m_groupCount; a2->m_isDecoration2 = 0; if ( m_groupCount > 0 ) { v5 = 0; do { while ( 1 ) { v6 = v5++; GroupID = GameObject::getGroupID(a2, v6); StaticGroup = GJBaseGameLayer::getStaticGroup(a1, GroupID); OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(a1, GroupID); if ( !(unsigned __int8)cocos2d::CCArray::containsObject(StaticGroup, a2) ) break; cocos2d::CCArray::removeObject(OptimizedGroup, a2, 1); if ( v5 >= a2->m_groupCount ) return; } cocos2d::CCArray::addObject(StaticGroup, a2); cocos2d::CCArray::removeObject(OptimizedGroup, a2, 1); } while ( v5 < a2->m_groupCount ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source