// // GJChestSprite::setColor from 0x93a430 to 0x93a524 (244 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJChestSprite::setColor @ 0x93a52c // > @ 0x66618 // > @ 0x11b2730 // // 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 GJChestSprite::setColor(GJChestSprite *a1, const cocos2d::ccColor3B *a2) { __int16 v3; // w2 GLubyte b; // w1 _BOOL4 m_dark; // w0 cocos2d::CCArray *v6; // x0 cocos2d::CCArray *v7; // x20 __int64 v8; // x0 cocos2d::ccColor3B v9; // [xsp+30h] [xbp+30h] BYREF v3 = *(_WORD *)&a2->r; b = a2->b; m_dark = a1->m_dark; *(_WORD *)&v9.r = v3; v9.b = b; if ( m_dark ) { v9.g = (unsigned int)(float)((float)v9.g * 0.4); v9.b = (unsigned int)(float)((float)b * 0.4); v9.r = (unsigned int)(float)((float)v9.r * 0.4); } cocos2d::CCSprite::setColor(a1, &v9); v6 = a1->getChildren(a1); v7 = v6; if ( v6 ) { if ( (unsigned int)cocos2d::CCArray::count(v6) ) { v8 = cocos2d::CCArray::objectAtIndex(v7, 0); (*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v8 + 944LL))(v8, &v9); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source