// // LevelEditorLayer::tryUpdateSpeedObject from 0x6651d0 to 0x665320 (336 bytes) // // 4 xrefs: // > LevelEditorLayer::removeSpecial @ 0x6655fc // > LevelEditorLayer::addSpecial @ 0x670664 // > EditorUI::onToggleGuide @ 0x689e90 // > @ 0x6b4f0 // // 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 LevelEditorLayer::tryUpdateSpeedObject(LevelEditorLayer *a1, EffectGameObject *a2, bool a3) { int v5; // w20 _BOOL4 v6; // w22 int v7; // w20 bool result; // w0 int m_objectID; // w20 _BOOL4 isSpeedObject; // w22 _BOOL4 v11; // w1 if ( a2->m_shouldPreview <= (unsigned int)a3 ) { m_objectID = a2->m_objectID; isSpeedObject = GameObject::isSpeedObject(a2); if ( m_objectID != 111 ) { if ( m_objectID <= 111 ) { if ( m_objectID != 13 && m_objectID != 47 ) { LABEL_15: v7 = 1; if ( !isSpeedObject ) goto LABEL_21; LABEL_16: DrawGridLayer::removeFromSpeedObjects(a1->m_drawGridLayer, a2); return 1; } } else if ( m_objectID != 1331 && m_objectID != 1933 && m_objectID != 660 ) { goto LABEL_15; } } v7 = 1; DrawGridLayer::removeFromGuides(a1->m_drawGridLayer, a2); if ( !isSpeedObject ) goto LABEL_21; goto LABEL_16; } v5 = a2->m_objectID; v6 = GameObject::isSpeedObject(a2); if ( v5 != 111 ) { if ( v5 <= 111 ) { if ( v5 != 13 && v5 != 47 ) goto LABEL_7; } else if ( v5 != 1331 && v5 != 1933 && v5 != 660 ) { LABEL_7: v7 = 0; goto LABEL_8; } } v7 = 0; DrawGridLayer::addToGuides(a1->m_drawGridLayer, a2); LABEL_8: if ( v6 ) { LABEL_9: DrawGridLayer::addToSpeedObjects(a1->m_drawGridLayer, a2); return 1; } LABEL_21: v11 = a2->canReverse(a2); result = 0; if ( v11 && a2->m_isReverse ) { if ( !v7 ) goto LABEL_9; goto LABEL_16; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source