// // GameToolbox::strongColor from 0x69d584 to 0x69d638 (180 bytes) // // 5 xrefs: // > PlayerObject::updateGlowColor @ 0x752cdc // > PlayerObject::updateGlowColor @ 0x752cfc // > SimplePlayer::updateColors @ 0x8ba090 // > SimplePlayer::updateColors @ 0x8ba210 // > @ 0x7e520 // // This function is hookable on this platform (idp: arm, 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 12:50:41 +0000 // unsigned __int64 __fastcall GameToolbox::strongColor(int a1) { int v1; // w2 int v2; // w1 _BOOL4 v3; // w4 _BOOL4 v4; // w3 int v5; // w0 int v6; // w3 float v7; // s2 v1 = (unsigned __int8)a1; v2 = BYTE1(a1); v3 = (unsigned __int8)a1 == 255; v4 = BYTE1(a1) == 255; v5 = BYTE2(a1); if ( !v3 && !v4 && v5 != 255 ) { if ( v5 > (unsigned int)v2 ) v6 = v5; else v6 = v2; if ( v6 < v1 ) v6 = v1; v7 = 255.0 / (float)v6; if ( v7 > 1.5 ) v7 = 1.5; v1 = (unsigned int)(float)(v7 * (float)v1); v2 = (unsigned int)(float)(v7 * (float)v2); v5 = (unsigned int)(float)(v7 * (float)v5); } return (unsigned __int8)v1 | (unsigned __int64)(unsigned __int16)((unsigned __int8)v2 << 8) | ((unsigned __int64)(unsigned __int8)v5 << 16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source