// // EditorUI::findSnapObject from 0x140123240 to 0x14012333d (253 bytes) // // 5 xrefs: // > EditorUI::ccTouchBegan @ 0x140123b2f // > EditorUI::ccTouchBegan @ 0x140123c85 // > @ 0x1406705b8 // > @ 0x1406705c8 // > @ 0x1406c9954 // // 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::CCPoint a2, float a3) { __int64 v5; // rcx unsigned int v6; // ebx cocos2d::CCArray *i; // rbp GameObject *v8; // rsi bool v9; // r9 bool v10; // r9 cocos2d::CCRect *ObjectRect; // rax bool v12; // [rsp+20h] [rbp-48h] bool v13; // [rsp+20h] [rbp-48h] char v14; // [rsp+30h] [rbp-38h] BYREF char v15; // [rsp+40h] [rbp-28h] BYREF if ( cocos2d::CCArray::count(a1->m_selectedObjects) ) { v6 = 0; for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); v6 < cocos2d::CCArray::count(a1->m_selectedObjects); ++v6 ) { v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v6); LevelEditorLayer::getObjectRect((cocos2d::CCRect *)a1->m_editorLayer, (LevelEditorLayer *)&v14, v8, v9, v12); ObjectRect = LevelEditorLayer::getObjectRect( (cocos2d::CCRect *)a1->m_editorLayer, (LevelEditorLayer *)&v15, v8, v10, v13); if ( cocos2d::CCRect::containsPoint(ObjectRect, *(const struct cocos2d::CCPoint **)&a2) ) cocos2d::CCArray::addObject(i, v8); } } else { i = nullptr; } EditorUI::findSnapObject_1(a1, i, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source