// // EditorUI::findSnapObject from 0x386008 to 0x3860b2 (170 bytes) // // 2 xrefs: // > EditorUI::ccTouchBegan @ 0x3a6bec // > EditorUI::ccTouchBegan @ 0x3a6d98 // // 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::findSnapObject(EditorUI *a1, cocos2d::CCArray *a2, float a3) { cocos2d::CCArray *v5; // r0 cocos2d::CCArray *v6; // r1 unsigned int v7; // r5 cocos2d::CCArray *v8; // r7 GameObject *v9; // r10 EditorUI *v10; // r0 cocos2d::CCRect v12; // [sp+10h] [bp-2Ch] BYREF cocos2d::CCRect v13; // [sp+24h] [bp-18h] BYREF v5 = (cocos2d::CCArray *)cocos2d::CCArray::count(a1->m_selectedObjects); v6 = v5; if ( v5 ) { v7 = 0; v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); while ( v7 < cocos2d::CCArray::count(a1->m_selectedObjects) ) { v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v7); LevelEditorLayer::getObjectRect(&v12, a1->m_editorLayer, v9, 0, 0); LevelEditorLayer::getObjectRect(&v13, a1->m_editorLayer, v9, 0, 0); if ( cocos2d::CCRect::containsPoint(&v13, (const cocos2d::CCPoint *)a2) ) cocos2d::CCArray::addObject(v8, v9); ++v7; } v10 = a1; v6 = v8; } else { v10 = a1; } EditorUI::findSnapObject(v10, v6, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source