// // EditorUI::getGridSnappedPos from 0x381e34 to 0x381ec6 (146 bytes) // // 9 xrefs: // > EditorUI::applySpecialOffset @ 0x385d2e // > EditorUI::findSnapObject @ 0x385ec0 // > EditorUI::findSnapObject @ 0x385f96 // > EditorUI::onCreateObject @ 0x3a3b32 // > EditorUI::createPrefab @ 0x3a4166 // > EditorUI::ccTouchMoved @ 0x3a4dd0 // > EditorUI::ccTouchEnded @ 0x3a55c4 // > EditorUI::doPasteObjects @ 0x3a5f28 // > SetupSmartBlockLayer::onPasteTemplate @ 0x53d476 // // 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 // cocos2d::CCPoint *EditorUI::getGridSnappedPos(cocos2d::CCPoint *__return_ptr retstr, EditorUI *a2, cocos2d::CCPoint a3) { float x; // r5 float m_gridSize; // s16 float v7; // s17 float v8; // r0 cocos2d::CCPoint v9; // r2 cocos2d::CCPoint v11; // [sp+4h] [bp-10h] BYREF x = a3.x; m_gridSize = a2->m_editorLayer->m_drawGridLayer->m_gridSize; v7 = floorf(*(float *)LODWORD(a3.x) / m_gridSize); v8 = floorf(*(float *)(LODWORD(x) + 4) / m_gridSize); cocos2d::CCPoint::CCPoint(&v11, (float)(v7 + 0.5) * m_gridSize, (float)(v8 + 0.5) * m_gridSize); LODWORD(v9.x) = &v11; EditorUI::getLimitedPosition(retstr, a2, v9); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source