//
// EditorUI::onUpdateDeleteFilter from 0x1003e91b0 to 0x1003e923c (140 bytes)
//
// 1 xrefs:
// > EditorUI::setupDeleteMenu @ 0x1003c7fe8
//
// 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 EditorUI::onUpdateDeleteFilter(EditorUI *a1, cocos2d::CCObject *a2)
{
unsigned int v3; // w0
unsigned int v4; // w20
GameManager *v5; // x0
const char *v6; // x1
int m_objectID; // w2
GameObject *m_selectedObject; // x20
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v3 >= 3 )
{
if ( v3 != 3 )
goto LABEL_4;
m_selectedObject = a1->m_selectedObject;
v5 = GameManager::sharedState();
v6 = "0005";
if ( m_selectedObject )
{
GameManager::setIntGameVariable(v5, "0005", 3);
v5 = GameManager::sharedState();
m_objectID = m_selectedObject->m_objectID;
v6 = "0006";
}
else
{
m_objectID = 0;
}
}
else
{
v4 = v3;
v5 = GameManager::sharedState();
v6 = "0005";
m_objectID = v4;
}
GameManager::setIntGameVariable(v5, v6, m_objectID);
LABEL_4:
EditorUI::updateDeleteButtons(a1);
}