// // SecretRewardsLayer::getPageColor from 0x58517a to 0x5851e2 (104 bytes) // // 2 xrefs: // > SecretRewardsLayer::scrollLayerMoved @ 0x585268 // > SecretRewardsLayer::scrollLayerMoved @ 0x58528a // // 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 SecretRewardsLayer::getPageColor(SecretRewardsLayer *a1, int a2) { unsigned __int8 v2; // r3 unsigned __int8 v5; // [sp+4h] [bp-4h] unsigned __int8 v6; // [sp+5h] [bp-3h] switch ( a2 ) { case 1: v2 = 50; v5 = 50; v6 = 50; break; case 2: v6 = 0; v5 = 70; v2 = 120; break; case 3: v5 = 36; v6 = 27; v2 = 40; break; default: v6 = 0; v2 = 75; v5 = 70; break; } return (cocos2d::ccColor3B)(v5 | (unsigned __int16)(v6 << 8) | (v2 << 16)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source