// // EditorUI::deselectTargetPortals from 0x68cfe0 to 0x68d0cc (236 bytes) // // 4 xrefs: // > EditorUI::onDelete @ 0x6c0da4 // > EditorUI::onDelete @ 0x6c0df8 // > EditorUI::onDeleteSelected @ 0x6c0f48 // > @ 0x8e230 // // 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 EditorUI::deselectTargetPortals(EditorUI *a1) { cocos2d::CCArray *m_selectedObjects; // x0 cocos2d::CCArray *v3; // x0 unsigned int v4; // w19 cocos2d::CCArray *v5; // x21 bool v6; // cf unsigned int v7; // w1 __int64 v8; // x1 unsigned int v9; // w19 unsigned int v10; // w1 GameObject *m_selectedObject; // x0 m_selectedObjects = a1->m_selectedObjects; if ( m_selectedObjects && (v3 = (cocos2d::CCArray *)cocos2d::CCArray::count(m_selectedObjects), (_DWORD)v3) ) { v4 = 0; v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); while ( 1 ) { v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); v7 = v4++; if ( v6 ) break; while ( 1 ) { v8 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v7); if ( *(_DWORD *)(v8 + 1012) != 749 ) break; cocos2d::CCArray::addObject(v5, (cocos2d::CCObject *)v8); v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); v7 = v4++; if ( v6 ) goto LABEL_8; } } LABEL_8: v9 = 0; while ( 1 ) { v6 = v9 >= (unsigned int)cocos2d::CCArray::count(v5); v10 = v9++; if ( v6 ) break; cocos2d::CCArray::objectAtIndex(v5, v10); EditorUI::deselectObject(a1); } } else { m_selectedObject = a1->m_selectedObject; if ( m_selectedObject && m_selectedObject->m_objectID == 749 ) EditorUI::deselectObject(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source