// // cocos2d::CCSprite::updateColor from 0x180090690 to 0x180090763 (211 bytes) // // 6 xrefs: // > cocos2d::CCSprite::setColor @ 0x18008f5d4 // > cocos2d::CCSprite::setOpacity @ 0x18008f80c // > cocos2d::CCSprite::setOpacityModifyRGB @ 0x18008f845 // > cocos2d::CCSprite::updateDisplayedColor @ 0x18009078a // > cocos2d::CCSprite::updateDisplayedOpacity @ 0x1800907aa // > @ 0x18014cf68 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:22:07 +0000 // void __fastcall cocos2d::CCSprite::updateColor(cocos2d::CCSprite *this) { float v1; // xmm1_4 bool v2; // zf struct cocos2d::_ccV3F_C4B_T2F_Quad *v3; // rdx unsigned int v4; // r8d int v5; // [rsp+8h] [rbp+8h] LOWORD(v5) = *((_WORD *)this + 165); BYTE2(v5) = *((_BYTE *)this + 332); HIBYTE(v5) = *((_BYTE *)this + 328); if ( *((_BYTE *)this + 556) ) { v1 = (float)*((unsigned __int8 *)this + 328) / 255.0; LOBYTE(v5) = (int)(float)((float)*((unsigned __int8 *)this + 330) * v1); BYTE1(v5) = (int)(float)((float)*((unsigned __int8 *)this + 331) * v1); BYTE2(v5) = (int)(float)((float)*((unsigned __int8 *)this + 332) * v1); } v2 = *((_QWORD *)this + 46) == 0; v3 = (cocos2d::CCSprite *)((char *)this + 460); *((_DWORD *)this + 124) = v5; *((_DWORD *)this + 136) = v5; *((_DWORD *)this + 118) = v5; *((_DWORD *)this + 130) = v5; if ( !v2 ) { v4 = *((_DWORD *)this + 90); if ( v4 == -1 ) { LOBYTE(v3) = 1; (*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::_ccV3F_C4B_T2F_Quad *))(*(_QWORD *)this + 1048LL))( this, v3); } else { cocos2d::CCTextureAtlas::updateQuad(*((cocos2d::CCTextureAtlas **)this + 44), v3, v4); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source