// // GJChestSprite::setColor from 0x1001c8178 to 0x1001c8244 (204 bytes) // // 2 xrefs: // > sub_1001C8244 @ 0x1001c8248 // > @ 0x1007b8df8 // // 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 __fastcall GJChestSprite::setColor(GJChestSprite *a1, const cocos2d::ccColor3B *a2) { unsigned int v2; // s0 unsigned int v4; // s0 int v5; // w8 unsigned int v6; // s0 int v7; // w9 __int64 v8; // x0 __int64 v9; // x19 __int64 v10; // x0 cocos2d::ccColor3B v11; // [xsp+Ch] [xbp-14h] BYREF v11 = *a2; if ( a1->m_dark ) { LOBYTE(v2) = v11.r; *(float *)&v4 = (float)v2 * 0.4; v5 = (int)*(float *)&v4; LOBYTE(v4) = v11.g; *(float *)&v6 = (float)v4 * 0.4; v7 = (int)*(float *)&v6; LOBYTE(v6) = v11.b; v11.b = (int)(float)((float)v6 * 0.4); *(_WORD *)&v11.r = v5 | ((_WORD)v7 << 8); } cocos2d::CCSprite::setColor(a1, &v11); v8 = ((__int64 (__fastcall *)(GJChestSprite *))a1->getChildren)(a1); if ( v8 ) { v9 = v8; if ( (unsigned int)sub_10024A36C(v8) ) { v10 = sub_10024A388(v9, 0); (*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v10 + 944LL))(v10, &v11); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source