// // EditorUI::findSnapObject from 0x4851f8 to 0x4852a2 (170 bytes) // // 2 xrefs: // > EditorUI::startFreeMoveTouch @ 0x6efece // > EditorUI::startFreeMoveTouch @ 0x6effdc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:49:24 +0000 // unsigned int __fastcall EditorUI::findSnapObject(cocos2d::CCArray **a1, const cocos2d::CCPoint *a2, float a3) { cocos2d::CCArray *v5; // r0 cocos2d::CCArray *v6; // r1 unsigned int v7; // r5 cocos2d::CCArray *v8; // r7 const cocos2d::CCPoint *v9; // r10 EditorUI *v10; // r0 _BYTE v13[20]; // [sp+10h] [bp-2Ch] BYREF _BYTE v14[16]; // [sp+24h] [bp-18h] BYREF v5 = (cocos2d::CCArray *)cocos2d::CCArray::count(a1[167]); v6 = v5; if ( v5 ) { v7 = 0; v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); while ( v7 < cocos2d::CCArray::count(a1[167]) ) { v9 = (const cocos2d::CCPoint *)cocos2d::CCArray::objectAtIndex(a1[167], v7); LevelEditorLayer::getObjectRect((LevelEditorLayer *)v13, a1[236], v9, 0, 0); LevelEditorLayer::getObjectRect((LevelEditorLayer *)v14, a1[236], v9, 0, 0); if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v14, a2) ) cocos2d::CCArray::addObject(v8, v9); ++v7; } v10 = (EditorUI *)a1; v6 = v8; } else { v10 = (EditorUI *)a1; } return EditorUI::findSnapObject(v10, v6, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source