// // GJEffectManager::calculateLightBGColor from 0x5c40cc to 0x5c41a4 (216 bytes) // // 5 xrefs: // > PlayLayer::updateVisibility @ 0x406b88 // > LevelEditorLayer::transferDefaultColors @ 0x461a38 // > LevelEditorLayer::updateVisibility @ 0x462cda // > LevelEditorLayer::postUpdate @ 0x46ad34 // > LevelEditorLayer::updateGameObjects @ 0x46cc68 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:53:51 +0000 // cocos2d::CCObject *__fastcall GJEffectManager::calculateLightBGColor(GJEffectManager *a1, int a2) { int active; // r0 int v4; // r0 float v5; // s15 int MixedColor; // r0 cocos2d::CCObject *ColorSprite; // r0 char v8; // r3^2 cocos2d::CCObject *result; // r0 char v10; // r3 __int16 v12; // [sp+Ch] [bp-Ch] BYREF unsigned __int8 v13; // [sp+Eh] [bp-Ah] int v14; // [sp+10h] [bp-8h] active = GJEffectManager::activeColorForIndex(a1, 1000); v12 = active; v13 = BYTE2(active); v4 = GameToolbox::transformColor((unsigned __int8 *)&v12, 0.0, -0.2, 0.2); LOWORD(v14) = v4; BYTE2(v14) = BYTE2(v4); v5 = (float)(v13 + (unsigned __int8)v12 + HIBYTE(v12)); if ( v5 < 150.0 ) { MixedColor = GJEffectManager::getMixedColor(v14, a2, v5 / 150.0); LOWORD(v14) = MixedColor; BYTE2(v14) = BYTE2(MixedColor); } ColorSprite = GJEffectManager::getColorSprite(a1, 1007); v8 = BYTE2(v14); *((_WORD *)ColorSprite + 134) = v14; *((_BYTE *)ColorSprite + 270) = v8; result = GJEffectManager::getColorSprite(a1, 1007); v10 = BYTE2(v14); *(_WORD *)((char *)result + 271) = v14; *((_BYTE *)result + 273) = v10; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source