// // EditorUI::getLimitedPosition from 0x380f94 to 0x381024 (144 bytes) // // 2 xrefs: // > EditorUI::moveObject @ 0x38106a // > EditorUI::getGridSnappedPos @ 0x381eac // // 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::getLimitedPosition( cocos2d::CCPoint *__return_ptr retstr, EditorUI *a2, cocos2d::CCPoint a3) { float v3; // s15 float v5; // s15 int v6; // r3 v3 = *(float *)LODWORD(a3.x); if ( *(float *)LODWORD(a3.x) <= -3000.0 ) { v3 = -3000.0; } else if ( v3 >= 240000.0 ) { v3 = 240000.0; } LODWORD(a3.y) = a2->m_editorLayer; *(float *)LODWORD(a3.x) = v3; v5 = *(float *)(LODWORD(a3.x) + 4); LODWORD(a3.y) = *(unsigned __int8 *)(*(_DWORD *)(LODWORD(a3.y) + 2240) + 365); if ( v5 <= -3000.0 ) v5 = -3000.0; if ( LODWORD(a3.y) ) v6 = 1000; else v6 = 80; if ( (float)((float)((float)v6 * 30.0) + 90.0) <= v5 ) v5 = (float)((float)v6 * 30.0) + 90.0; *(float *)(LODWORD(a3.x) + 4) = v5; cocos2d::CCPoint::CCPoint(retstr, (const cocos2d::CCPoint *)LODWORD(a3.x)); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source