// // EditorUI::getGridSnappedPos from 0x7c7408 to 0x7c74d0 (200 bytes) // // 11 xrefs: // > EditorUI::findSnapObject @ 0x7c76d4 // > EditorUI::findSnapObject @ 0x7c7814 // > EditorUI::createPrefab @ 0x7c9c5c // > EditorUI::onCreateObject @ 0x7c9ffc // > EditorUI::createGradientFromSelection @ 0x7cac88 // > SetupSmartBlockLayer::onPasteTemplate @ 0xb15d84 // > EditorUI::swipeToPosition @ 0xbd5298 // > EditorUI::ccTouchEnded @ 0xbd66e4 // > EditorUI::doPasteObjects @ 0xbd9fd8 // > EditorUI::applySpecialOffset @ 0xc003d8 // > @ 0x4a050 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:54:09 +0000 // __int64 __usercall EditorUI::getGridSnappedPos@(__int64 a1@, float *a2@, __int64 a3@) { float v5; // s8 float v6; // s0 _BYTE v9[8]; // [xsp+50h] [xbp+50h] BYREF v5 = *(float *)(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 14288LL) + 604LL); v6 = fmodf(90.0, v5); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v9, v5 * (float)(floorf(*a2 / v5) + 0.5), v6 + (float)(v5 * (float)(floorf((float)(a2[1] - v6) / v5) + 0.5))); EditorUI::getLimitedPosition(a1, v9); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source