// // cocos2d::CCSprite::updateColor from 0x7f168c to 0x7f1774 (232 bytes) // // 6 xrefs: // > CCSpriteWithHue::updateColor @ 0x3f2c04 // > cocos2d::CCSprite::setOpacityModifyRGB @ 0x7f1784 // > cocos2d::CCSprite::setOpacity @ 0x7f21a8 // > cocos2d::CCSprite::setColor @ 0x7f21e8 // > cocos2d::CCSprite::updateDisplayedColor @ 0x7f2204 // > cocos2d::CCSprite::updateDisplayedOpacity @ 0x7f221e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:04 +0000 // int __fastcall cocos2d::CCSprite::updateColor(cocos2d::CCSprite *this) { int v2; // r5 int result; // r0 int v4; // r2 int v5; // r3 int v6; // r4 float v7; // s14 int v8; // r3 int v9; // r2 v2 = *((unsigned __int8 *)this + 468); result = *((unsigned __int8 *)this + 270); v4 = *((unsigned __int8 *)this + 271); v5 = *((unsigned __int8 *)this + 272); v6 = *((unsigned __int8 *)this + 268); if ( v2 ) { v7 = (float)v6 / 255.0; result = (unsigned __int8)(unsigned int)(float)((float)result * v7); LOBYTE(v4) = (unsigned int)(float)((float)v4 * v7); LOBYTE(v5) = (unsigned int)(float)((float)v5 * v7); } *((_BYTE *)this + 410) = v5; *((_BYTE *)this + 458) = v5; *((_BYTE *)this + 386) = v5; *((_BYTE *)this + 434) = v5; v8 = *((_DWORD *)this + 73); *((_BYTE *)this + 408) = result; *((_BYTE *)this + 409) = v4; *((_BYTE *)this + 411) = v6; *((_BYTE *)this + 456) = result; *((_BYTE *)this + 457) = v4; *((_BYTE *)this + 459) = v6; *((_BYTE *)this + 384) = result; *((_BYTE *)this + 385) = v4; *((_BYTE *)this + 387) = v6; *((_BYTE *)this + 432) = result; *((_BYTE *)this + 433) = v4; *((_BYTE *)this + 435) = v6; if ( v8 ) { v9 = *((_DWORD *)this + 72); if ( v9 == -1 ) return (*(int (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)this + 600))(this, 1); else return cocos2d::CCTextureAtlas::updateQuad(*((_DWORD *)this + 71), (char *)this + 372, v9, v9 + 1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source