// // EditorUI::getGridSnappedPos from 0x484ee8 to 0x484f8c (164 bytes) // // 10 xrefs: // > EditorUI::findSnapObject @ 0x4850b0 // > EditorUI::findSnapObject @ 0x485186 // > EditorUI::createPrefab @ 0x487062 // > EditorUI::onCreateObject @ 0x487282 // > EditorUI::createGradientFromSelection @ 0x487b16 // > SetupSmartBlockLayer::onPasteTemplate @ 0x673aa4 // > EditorUI::swipeToPosition @ 0x6f005a // > EditorUI::ccTouchEnded @ 0x6f0f04 // > EditorUI::doPasteObjects @ 0x6f3326 // > EditorUI::applySpecialOffset @ 0x70d5ac // // 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 // int __fastcall EditorUI::getGridSnappedPos(int a1, int a2, float *a3) { float v6; // s16 float v7; // s18 float v8; // s17 float v9; // r0 _BYTE v11[8]; // [sp+4h] [bp-10h] BYREF v6 = *(float *)(*(_DWORD *)(*(_DWORD *)(a2 + 944) + 11880) + 444); v7 = fmodf(90.0, v6); v8 = floorf(*a3 / v6); v9 = floorf((float)(a3[1] - v7) / v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)(v8 + 0.5) * v6, v7 + (float)((float)(v9 + 0.5) * v6)); EditorUI::getLimitedPosition(a1, a2, v11); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source