// // GJBaseGameLayer::updateLevelColors from 0x100114600 to 0x1001148ac (684 bytes) // // 13 xrefs: // > PlayLayer::setupHasCompleted @ 0x1000ae5e6 // > PlayLayer::setupHasCompleted @ 0x1000ae91c // > PlayLayer::postUpdate @ 0x1000baefc // > PlayLayer::resetLevel @ 0x1000bebed // > PlayLayer::resetLevel @ 0x1000bec46 // > LevelEditorLayer::updateGameObjects @ 0x1000de754 // > LevelEditorLayer::onPlaytest @ 0x1000f2926 // > LevelEditorLayer::postUpdate @ 0x1000f348c // > GJBaseGameLayer::swapBackground @ 0x1001145be // > GJBaseGameLayer::asyncBGLoaded @ 0x1001145f7 // > GJBaseGameLayer::asyncGLoaded @ 0x100114909 // > GJBaseGameLayer::swapMiddleground @ 0x100114ad7 // > GJBaseGameLayer::asyncMGLoaded @ 0x100114c47 // // 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 GJBaseGameLayer::updateLevelColors(GJBaseGameLayer *a1) { int v1; // eax int v2; // r14d int v3; // eax int v4; // r14d GJGroundLayer *m_groundLayer; // r14 bool shouldBlend; // al GJGroundLayer *m_groundLayer2; // r14 bool v8; // al GJMGLayer *m_middleground; // r14 int v10; // eax GJMGLayer *v11; // r14 int v12; // eax GJMGLayer *v13; // r14 float v14; // xmm0_4 GJMGLayer *v15; // r14 float v16; // xmm0_4 GJMGLayer *v17; // r14 bool v18; // al GJMGLayer *v19; // r14 bool v20; // al float v21; // [rsp+4h] [rbp-1Ch] cocos2d::ccColor3B v22; // [rsp+8h] [rbp-18h] BYREF cocos2d::ccColor3B v23[6]; // [rsp+Ch] [rbp-14h] BYREF v22 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1000); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_background->setColor)(a1->m_background, &v22); *(cocos2d::ccColor3B *)&v1 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1001); v2 = v1; GJGroundLayer::updateGround01Color(a1->m_groundLayer, (cocos2d::ccColor3B)v1); GJGroundLayer::updateGround01Color(a1->m_groundLayer2, (cocos2d::ccColor3B)v2); if ( a1->m_groundLayer->m_ground2Sprite ) { *(cocos2d::ccColor3B *)&v3 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1009); v4 = v3; GJGroundLayer::updateGround02Color(a1->m_groundLayer, (cocos2d::ccColor3B)v3); GJGroundLayer::updateGround02Color(a1->m_groundLayer2, (cocos2d::ccColor3B)v4); } v23[0] = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1002); v21 = GJEffectManager::activeOpacityForIndex(a1->m_effectManager, 1002) * 255.0; ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_groundLayer->m_lineSprite->setColor)( a1->m_groundLayer->m_lineSprite, v23); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_groundLayer2->m_lineSprite->setColor)( a1->m_groundLayer2->m_lineSprite, v23); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_groundLayer->m_lineSprite->setOpacity)( a1->m_groundLayer->m_lineSprite, (unsigned __int8)(int)v21); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_groundLayer2->m_lineSprite->setOpacity)( a1->m_groundLayer2->m_lineSprite, (unsigned __int8)(int)v21); m_groundLayer = a1->m_groundLayer; shouldBlend = GJEffectManager::shouldBlend(a1->m_effectManager, 1002); GJGroundLayer::updateLineBlend(m_groundLayer, shouldBlend); m_groundLayer2 = a1->m_groundLayer2; v8 = GJEffectManager::shouldBlend(a1->m_effectManager, 1002); GJGroundLayer::updateLineBlend(m_groundLayer2, v8); m_middleground = a1->m_middleground; if ( m_middleground ) { *(cocos2d::ccColor3B *)&v10 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1013); GJMGLayer::updateGroundColor(m_middleground, (cocos2d::ccColor3B)v10, 1); v11 = a1->m_middleground; *(cocos2d::ccColor3B *)&v12 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1014); GJMGLayer::updateGroundColor(v11, (cocos2d::ccColor3B)v12, 0); v13 = a1->m_middleground; v14 = GJEffectManager::activeOpacityForIndex(a1->m_effectManager, 1013); GJMGLayer::updateGroundOpacity(v13, (int)(float)(v14 * 255.0), 1); v15 = a1->m_middleground; v16 = GJEffectManager::activeOpacityForIndex(a1->m_effectManager, 1014); GJMGLayer::updateGroundOpacity(v15, (int)(float)(v16 * 255.0), 0); v17 = a1->m_middleground; v18 = GJEffectManager::shouldBlend(a1->m_effectManager, 1013); GJMGLayer::updateMG01Blend(v17, v18); v19 = a1->m_middleground; v20 = GJEffectManager::shouldBlend(a1->m_effectManager, 1014); GJMGLayer::updateMG02Blend(v19, v20); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source