// // GameToolbox::strongColor from 0x581794 to 0x581848 (180 bytes) // // 5 xrefs: // > PlayerObject::updateGlowColor @ 0x6274f8 // > PlayerObject::updateGlowColor @ 0x627518 // > SimplePlayer::updateColors @ 0x791d10 // > SimplePlayer::updateColors @ 0x791e90 // > @ 0x5c250 // // 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 // cocos2d::ccColor3B GameToolbox::strongColor(cocos2d::ccColor3B a1) { int r; // w2 int g; // w1 _BOOL4 v3; // w4 _BOOL4 v4; // w3 int b; // w0 int v6; // w3 float v7; // s2 r = a1.r; g = a1.g; v3 = a1.r == 255; v4 = a1.g == 255; b = a1.b; if ( !v3 && !v4 && b != 255 ) { if ( b > (unsigned int)g ) v6 = b; else v6 = g; if ( v6 < r ) v6 = r; v7 = 255.0 / (float)v6; if ( v7 > 1.5 ) v7 = 1.5; r = (unsigned int)(float)(v7 * (float)r); g = (unsigned int)(float)(v7 * (float)g); b = (unsigned int)(float)(v7 * (float)b); } return (cocos2d::ccColor3B)((unsigned __int8)r | (unsigned __int16)((unsigned __int8)g << 8) | ((unsigned __int8)b << 16)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source