// // GameObject::updateMainColor from 0x1005ca730 to 0x1005ca81b (235 bytes) // // 1 xrefs: // > PlayLayer::updateVisibility @ 0x1000b7563 // // 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 GameObject::updateMainColor(GameObject *a1) { const cocos2d::ccColor3B *v1; // rax int m_opacity; // eax float v3; // xmm0_4 float v4; // xmm0_4 __int64 v5; // r14 float v6; // xmm1_4 float v7; // [rsp+Ch] [rbp-14h] v1 = GameObject::colorForMode(a1, a1->m_activeMainColorID, 1); ((void (__fastcall *)(GameObject *, const cocos2d::ccColor3B *))a1->updateMainColor)(a1, v1); if ( a1->m_activeMainColorID > 0 && (m_opacity = (int)a1->m_mainActionSprite->m_opacity, (unsigned __int8)m_opacity < 0xFAu) ) { v3 = (float)(unsigned __int8)m_opacity * 0.0040000002; if ( a1->m_opacityGroupCount <= 0 ) goto LABEL_10; } else { v3 = 1.0; if ( a1->m_opacityGroupCount <= 0 ) goto LABEL_10; } v7 = v3; v4 = 1.0; v5 = 0; do { v4 = GJEffectManager::opacityModForGroup(a1->m_goEffectManager, a1->m_opacityGroups->__elems_[v5]) * v4; v6 = 0.0; if ( v4 <= 0.0 ) break; ++v5; v6 = v4; } while ( v5 < a1->m_opacityGroupCount ); v3 = v7 * v6; LABEL_10: a1->m_baseColor->m_opacity = v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source