// // LevelEditorLayer::tryUpdateSpeedObject from 0x1000ea240 to 0x1000ea37f (319 bytes) // // 3 xrefs: // > EditorUI::onToggleGuide @ 0x10002f2e9 // > LevelEditorLayer::addSpecial @ 0x1000e007a // > LevelEditorLayer::removeSpecial @ 0x1000e24c9 // // 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 LevelEditorLayer::tryUpdateSpeedObject(LevelEditorLayer *a1, EffectGameObject *a2, bool a3) { _BOOL8 v4; // r12 int m_objectID; // r13d bool isSpeedObject; // r15 DrawGridLayer *m_drawGridLayer; // r13 cocos2d::CCArray *m_guideObjects; // rdi DrawGridLayer *v9; // r15 char v10; // al bool v11; // r14 v4 = a3 || !a2->m_shouldPreview; m_objectID = a2->m_objectID; isSpeedObject = GameObject::isSpeedObject(a2); if ( m_objectID > 659 ) { if ( m_objectID != 660 && m_objectID != 1933 && m_objectID != 1331 ) goto LABEL_13; } else if ( m_objectID != 13 && m_objectID != 47 && m_objectID != 111 ) { goto LABEL_13; } m_drawGridLayer = a1->m_drawGridLayer; m_guideObjects = m_drawGridLayer->m_guideObjects; if ( v4 ) { sub_100720220(m_guideObjects, a2, 1); } else if ( !(unsigned __int8)sub_100720160(m_guideObjects, a2) ) { sub_10071FCD0(m_drawGridLayer->m_guideObjects, a2); } LABEL_13: if ( !isSpeedObject && (!((unsigned __int8 (__fastcall *)(EffectGameObject *))a2->canReverse)(a2) || !a2->m_isReverse) ) return 0; v9 = a1->m_drawGridLayer; v10 = sub_100720160(v9->m_speedObjects, a2); v11 = 1; if ( v4 ) { if ( v10 ) { sub_100720220(v9->m_speedObjects, a2, 1); v9->m_updateSpeedObjects = 1; } } else if ( !v10 ) { sub_10071FCD0(v9->m_speedObjects, a2); v9->m_updateSpeedObjects = 1; EffectGameObject::updateSpeedModType(a2); } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source