// // GameObject::shouldBlendColor from 0x100256668 to 0x100256710 (168 bytes) // // 2 xrefs: // > GameObject::updateBlendMode @ 0x10025cd0c // > GameObject::updateBlendMode @ 0x10025cd3c // // 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 __fastcall GameObject::shouldBlendColor(GameObject *a1, GJSpriteColor *a2, bool a3) { int m_defaultColorID; // w10 int v4; // w19 GameManager *v5; // x0 int m_colorID; // w9 GameManager *v8; // x0 m_defaultColorID = a2->m_defaultColorID; if ( a2->m_colorID ) m_defaultColorID = a2->m_colorID; if ( a1->m_unk353 ) v4 = 0; else v4 = m_defaultColorID; if ( a1->m_editorEnabled ) { v5 = GameManager::sharedState(); return LevelEditorLayer::shouldBlend(v5->m_levelEditorLayer, v4); } else { while ( v4 == 1012 ) { m_colorID = a1->m_baseColor->m_colorID; if ( !m_colorID ) m_colorID = a1->m_baseColor->m_defaultColorID; if ( a1->m_unk353 ) v4 = 0; else v4 = m_colorID; } if ( (unsigned int)(v4 - 1005) >= 3 ) { if ( v4 ) { v8 = GameManager::sharedState(); return PlayLayer::shouldBlend(v8->m_playLayer, v4); } else { return 0; } } else { return 1; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source