// // LevelSelectLayer::scrollLayerMoved from 0x100403518 to 0x100403668 (336 bytes) // // 2 xrefs: // > sub_100403790 @ 0x100403794 // > @ 0x100817958 // // 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 LevelSelectLayer::scrollLayerMoved(LevelSelectLayer *a1, cocos2d::CCPoint a2) { float *v2; // x1 float i; // s0 int v5; // w8 float v6; // s0 int v7; // w1 int v8; // w2 __n128 v9; // q0 int v10; // w8 int v11; // w9 unsigned int v12; // s0 unsigned int v13; // s0 int v14; // w8 unsigned int v15; // s0 int v16; // w9 cocos2d::ccColor3B ColorValue; // [xsp+Ch] [xbp-14h] BYREF for ( i = (float)-*v2 / a1->m_width; i < 0.0; i = i + 24.0 ) ; v5 = vcvtms_s32_f32(i); v6 = i - (float)(int)floorf(i); a1->m_scrolls = v5; v7 = v5 % 24; if ( v5 % 24 == 23 ) v8 = 0; else v8 = v7 + 1; ColorValue = LevelSelectLayer::getColorValue(a1, v7, v8, v6); v9 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_backgroundSprite->setColor)( a1->m_backgroundSprite, &ColorValue); v9.n128_u8[0] = ColorValue.r; v9.n128_f32[0] = (float)v9.n128_u32[0] * 0.8; v10 = (int)v9.n128_f32[0]; v9.n128_u8[0] = ColorValue.g; v9.n128_f32[0] = (float)v9.n128_u32[0] * 0.8; v11 = (int)v9.n128_f32[0]; v9.n128_u8[0] = ColorValue.b; GJGroundLayer::updateGround01Color( a1->m_groundLayer, (cocos2d::ccColor3B)((v11 << 8) | ((int)(float)((float)v9.n128_u32[0] * 0.8) << 16) | v10)); LOBYTE(v12) = ColorValue.r; *(float *)&v13 = (float)v12 * 0.9; v14 = (int)*(float *)&v13; LOBYTE(v13) = ColorValue.g; *(float *)&v15 = (float)v13 * 0.9; v16 = (int)*(float *)&v15; LOBYTE(v15) = ColorValue.b; GJGroundLayer::updateGround02Color( a1->m_groundLayer, (cocos2d::ccColor3B)((v16 << 8) | ((int)(float)((float)v15 * 0.9) << 16) | v14)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source