// // EditorUI::moveForCommand from 0x68ebc4 to 0x68ee50 (652 bytes) // // 2 xrefs: // > EditorUI::moveObjectCall @ 0x6b93ac // > @ 0xbd180 // // 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::moveForCommand(EditorUI *a1, EditCommand a2) { cocos2d::CCPoint *v2; // x8 cocos2d::CCPoint *v3; // x20 float m_gridSize; // s10 float v5; // s9 float v6; // s8 float v9; // s0 float v10; // s1 float v11; // s0 float v12; // s1 float v13; // s0 float v14; // s1 float v15; // s0 float v16; // s1 float v17; // s0 float v18; // s1 float v19; // s0 float v20; // s1 float v21; // s0 float v22; // s1 float v23; // s0 float v24; // s1 float v25; // s0 float v26; // s1 float v27; // s0 float v28; // s1 cocos2d::CCPoint v30; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v3 = v2; m_gridSize = a1->m_gridSize; v5 = m_gridSize * 5.0; v6 = m_gridSize * 0.5; cocos2d::CCPoint::CCPoint(v2); switch ( a2 ) { case SmallLeft: cocos2d::CCPoint::CCPoint(&v30, -2.0, 0.0); cocos2d::CCPoint::operator=(v3, v27, v28); return result; case SmallRight: cocos2d::CCPoint::CCPoint(&v30, 2.0, 0.0); cocos2d::CCPoint::operator=(v3, v25, v26); return result; case SmallUp: cocos2d::CCPoint::CCPoint(&v30, 0.0, 2.0); cocos2d::CCPoint::operator=(v3, v23, v24); return result; case SmallDown: cocos2d::CCPoint::CCPoint(&v30, 0.0, -2.0); cocos2d::CCPoint::operator=(v3, v21, v22); return result; case Left: v9 = -m_gridSize; goto LABEL_6; case Right: v9 = m_gridSize; goto LABEL_6; case Up: v9 = 0.0; v10 = m_gridSize; goto LABEL_3; case Down: v9 = 0.0; v10 = -m_gridSize; goto LABEL_3; case BigLeft: v9 = -v5; goto LABEL_6; case BigRight: v9 = m_gridSize * 5.0; goto LABEL_6; case BigUp: v9 = 0.0; v10 = m_gridSize * 5.0; goto LABEL_3; case BigDown: v9 = 0.0; v10 = -v5; goto LABEL_3; case TinyLeft: cocos2d::CCPoint::CCPoint(&v30, -0.5, 0.0); cocos2d::CCPoint::operator=(v3, v19, v20); return result; case TinyRight: cocos2d::CCPoint::CCPoint(&v30, 0.5, 0.0); cocos2d::CCPoint::operator=(v3, v17, v18); return result; case TinyUp: cocos2d::CCPoint::CCPoint(&v30, 0.0, 0.5); cocos2d::CCPoint::operator=(v3, v15, v16); return result; case TinyDown: cocos2d::CCPoint::CCPoint(&v30, 0.0, -0.5); cocos2d::CCPoint::operator=(v3, v13, v14); return result; case HalfLeft: v9 = -v6; goto LABEL_6; case HalfRight: v9 = m_gridSize * 0.5; LABEL_6: v10 = 0.0; goto LABEL_3; case HalfUp: v9 = 0.0; v10 = m_gridSize * 0.5; goto LABEL_3; case HalfDown: v9 = 0.0; v10 = -v6; LABEL_3: cocos2d::CCPoint::CCPoint(&v30, v9, v10); cocos2d::CCPoint::operator=(v3, v11, v12); break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source