// // GJEffectManager::calculateLightBGColor from 0x10001634c to 0x100016438 (236 bytes) // // 5 xrefs: // > PlayLayer::updateVisibility @ 0x10011c4d4 // > LevelEditorLayer::updateGameObjects @ 0x100358a10 // > LevelEditorLayer::updateVisibility @ 0x10035e8e0 // > LevelEditorLayer::transferDefaultColors @ 0x100360838 // > LevelEditorLayer::postUpdate @ 0x1003636b4 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall GJEffectManager::calculateLightBGColor(GJEffectManager *a1, cocos2d::ccColor3B a2) { int v2; // w20 ColorActionSprite *ColorSprite; // x0 int v5; // w8 int v6; // w0 int v7; // w21 unsigned int v8; // w8 int v9; // w0 cocos2d::ccColor3B v10; // [xsp+Ch] [xbp-24h] BYREF v2 = *(_DWORD *)&a2.r; ColorSprite = GJEffectManager::getColorSprite(a1, 1000); if ( ColorSprite ) v5 = *(unsigned __int16 *)&ColorSprite->m_copyColor.r | (ColorSprite->m_copyColor.b << 16); else v5 = 0xFFFFFF; v10 = (cocos2d::ccColor3B)v5; *(cocos2d::ccColor3B *)&v6 = GameToolbox::transformColor(&v10, 0.0, -0.2, 0.2); v7 = v6; v8 = v10.g + v10.r + v10.b; if ( v8 <= 0x95 ) { *(cocos2d::ccColor3B *)&v9 = GJEffectManager::getMixedColor( (cocos2d::ccColor3B)(v6 & 0xFFFFFF), (cocos2d::ccColor3B)(v2 & 0xFFFFFF), (float)v8 / 150.0); v7 = v9; } GJEffectManager::getColorSprite(a1, 1007)->m_color = (cocos2d::ccColor3B)v7; GJEffectManager::getColorSprite(a1, 1007)->m_copyColor = (cocos2d::ccColor3B)v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source