// // GameObject::shouldBlendColor from 0x642fbc to 0x643078 (188 bytes) // // 3 xrefs: // > GameObject::updateBlendMode @ 0x645a3c // > GameObject::updateBlendMode @ 0x645a78 // > @ 0x6ef40 // // 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 // bool GameObject::shouldBlendColor(GameObject *a1, GJSpriteColor *m_baseColor, bool a3) { int m_colorID; // w19 int m_defaultColorID; // w1 bool v5; // cc GameManager *v6; // x0 GameManager *v7; // x0 while ( 1 ) { m_colorID = m_baseColor->m_colorID; m_defaultColorID = m_baseColor->m_defaultColorID; if ( m_colorID == m_defaultColorID || !m_colorID ) break; v5 = m_colorID <= 1007; if ( a1->m_unk353 ) goto LABEL_4; LABEL_7: if ( a1->m_editorEnabled ) goto LABEL_17; if ( v5 ) { if ( m_colorID >= 1005 ) return (char)&dword_0 + 1; if ( m_colorID ) { LABEL_12: v6 = GameManager::sharedState(); LOBYTE(a1) = PlayLayer::shouldBlend(v6->m_playLayer, m_colorID); return (char)a1; } LABEL_5: LOBYTE(a1) = a1->m_editorEnabled; return (char)a1; } if ( m_colorID != 1012 ) goto LABEL_12; m_baseColor = a1->m_baseColor; } m_colorID = m_defaultColorID; v5 = m_defaultColorID <= 1007; if ( !a1->m_unk353 ) goto LABEL_7; LABEL_4: if ( !a1->m_editorEnabled ) goto LABEL_5; m_colorID = 0; LABEL_17: v7 = GameManager::sharedState(); LOBYTE(a1) = LevelEditorLayer::shouldBlend(v7->m_levelEditorLayer, m_colorID); return (char)a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source