// // CCPartAnimSprite::setColor from 0x2e703c to 0x2e70b6 (122 bytes) // // 3 xrefs: // > CCAnimatedSprite::switchToMode @ 0x2e4282 // > CCAnimatedSprite::setColor @ 0x2e45b8 // > GJRobotSprite::updateColors @ 0x4b7f88 // // 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 CCPartAnimSprite::setColor(CCPartAnimSprite *a1, cocos2d::ccColor3B a2) { cocos2d::CCObject **arr; // r5 cocos2d::CCObject **v4; // r7 cocos2d::CCObject **v5; // r4 int v6; // r0 int v7; // t1 int v8; // [sp+4h] [bp-8h] BYREF v8 = *(_DWORD *)&a2.r; cocos2d::CCSprite::setColor(a1, (const cocos2d::ccColor3B *)&v8); if ( a1->getChildren(a1) && a1->getChildren(a1)->data->num ) { arr = a1->getChildren(a1)->data->arr; v4 = a1->getChildren(a1)->data->arr; v5 = &v4[a1->getChildren(a1)->data->num] + 0x3FFFFFFF; while ( arr <= v5 ) { v7 = (int)*arr++; v6 = v7; if ( !v7 ) break; (*(void (__fastcall **)(int, int *))(*(_DWORD *)v6 + 472))(v6, &v8); } } }