// // cocos2d::CCAtlasNode::setColor from 0xaca610 to 0xaca6ec (220 bytes) // // 5 xrefs: // > `non-virtual thunk to'cocos2d::CCAtlasNode::setColor @ 0xaca6f0 // > @ 0xb6898 // > @ 0x11fffa0 // > @ 0x1201c80 // > @ 0x121b7b0 // // 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 cocos2d::CCAtlasNode::setColor(cocos2d::CCAtlasNode *a1, const cocos2d::ccColor3B *a2) { __int16 v2; // w2 GLubyte b; // w4 GLubyte v4; // w3 _BOOL4 m_bIsOpacityModifyRGB; // w1 int displayedOpacity; // w4 cocos2d::ccColor3B v7; // [xsp+20h] [xbp+20h] BYREF v2 = *(_WORD *)&a2->r; b = a2->b; *(_WORD *)&a1->m_tColorUnmodified.r = *(_WORD *)&a2->r; v4 = a2->b; m_bIsOpacityModifyRGB = a1->m_bIsOpacityModifyRGB; *(_WORD *)&v7.r = v2; v7.b = b; a1->m_tColorUnmodified.b = v4; if ( m_bIsOpacityModifyRGB ) { displayedOpacity = a1->_displayedOpacity; v7.r = (int)((unsigned __int64)(2155905153LL * v7.r * displayedOpacity) >> 32) >> 7; v7.g = (int)((unsigned __int64)(2155905153LL * displayedOpacity * v7.g) >> 32) >> 7; v7.b = (int)((unsigned __int64)(2155905153LL * displayedOpacity * v7.b) >> 32) >> 7; } cocos2d::CCNodeRGBA::setColor(a1, &v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source