// // GJEffectManager::calculateBaseActiveColors from 0x8a40b4 to 0x8a41d8 (292 bytes) // // 4 xrefs: // > PlayLayer::loadDefaultColors @ 0x5da908 // > GJEffectManager::loadFromState @ 0x8c1380 // > GJEffectManager::processColors @ 0x8c1664 // > @ 0x6fdf8 // // 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 GJEffectManager::calculateBaseActiveColors(GJEffectManager *a1) { unsigned __int64 v1; // x23 cocos2d::CCDictionary *m_unkDict150; // x0 cocos2d::CCDictElement *m_pElements; // x19 cocos2d::CCDictElement *i; // x21 __int64 v5; // x19 char v6; // w0 cocos2d::CCObject *m_pObject; // x19 char v8; // w0 cocos2d::CCObject_vtbl *v9; // x1 __int64 v10; // x19 unsigned __int64 v11; // x0 __int16 m_unknown2; // [xsp+40h] [xbp+40h] BYREF char v13; // [xsp+42h] [xbp+42h] m_unkDict150 = a1->m_unkDict150; if ( m_unkDict150 ) { m_pElements = m_unkDict150->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { m_pObject = m_pElements->m_pObject; v8 = BYTE2(m_pObject[5].m_unknown2); v9 = m_pObject[6].__vftable; m_unknown2 = m_pObject[5].m_unknown2; v13 = v8; if ( !v9 || SLODWORD(v9[1].update) <= 0 || BYTE6(v9[1].update) ) { v5 = (__int64)&m_pObject[5].m_unknown2 + 3; v6 = v13; *(_WORD *)v5 = m_unknown2; *(_BYTE *)(v5 + 2) = v6; if ( !i ) return; } else { v10 = (__int64)&m_pObject[5].m_unknown2 + 3; v1 = v1 & 0xFFFF000000000000LL | LODWORD(v9[1].acceptVisitor) | ((unsigned __int64)BYTE4(v9[1].acceptVisitor) << 32) & 0xFFFF00FFFFFFFFFFLL | ((unsigned __int64)BYTE5(v9[1].acceptVisitor) << 40); v11 = GameToolbox::transformColor( (unsigned __int8 *)&m_unknown2, LODWORD(v9[1].isEqual) | ((unsigned __int64)HIDWORD(v9[1].isEqual) << 32), v1); m_unknown2 = v11; v13 = BYTE2(v11); *(_WORD *)v10 = v11; *(_BYTE *)(v10 + 2) = BYTE2(v11); if ( !i ) return; } m_pElements = i; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source