// // EditorUI::deleteSmartBlocksFromObjects from 0x140117db0 to 0x140117f08 (344 bytes) // // 6 xrefs: // > EditorUI::spriteFromObjectString @ 0x14010e103 // > EditorUI::createSmartObjectsFromTemplate @ 0x1401174dc // > EditorUI::createPrefab @ 0x140117d25 // > @ 0x14066f914 // > @ 0x14066f924 // > @ 0x1406c9300 // // 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::deleteSmartBlocksFromObjects(EditorUI *a1, cocos2d::CCArray *a2) { unsigned int v4; // esi struct cocos2d::CCObject *v5; // rax GameObject *v6; // r14 __int64 m_unknown2; // rax cocos2d::CCArray *v8; // rax _BOOL8 v9; // rdx LevelEditorLayer *m_editorLayer; // rdi GJRotationControl *m_rotationControl; // rcx v4 = 0; while ( v4 < cocos2d::CCArray::count(a2) ) { v5 = cocos2d::CCArray::objectAtIndex(a2, v4); v6 = (GameObject *)v5; if ( v5[22].m_uAutoReleaseCount == 5 ) { m_unknown2 = v5[15].m_unknown2; if ( (int)m_unknown2 > 0 ) { v8 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_editorLayer->m_linkedGroupDict, m_unknown2); if ( v8 ) cocos2d::CCArray::removeObject(v8, v6, 1); } v6->m_wasSelected = v6->m_isSelected; EditorUI::deselectObject(a1, v6); LOBYTE(v9) = 1; m_editorLayer = a1->m_editorLayer; v6->deactivateObject(v6, v9); GJBaseGameLayer::removeObjectFromSection(m_editorLayer, v6); LevelEditorLayer::removeSpecial(m_editorLayer, v6); m_editorLayer->m_unk3b22 = 1; m_rotationControl = a1->m_rotationControl; a1->m_rotationTouchID = -1; if ( m_rotationControl->isVisible(m_rotationControl) ) { a1->m_rotationControl->setVisible(a1->m_rotationControl, 0); GJRotationControl::finishTouch(a1->m_rotationControl); } EditorUI::deactivateScaleControl(a1); EditorUI::deactivateTransformControl(a1); cocos2d::CCArray::removeObjectAtIndex(a2, v4, 1); } else { ++v4; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source