// // GameObject::setStartPos from 0x352f10 to 0x352f68 (88 bytes) // // 2 xrefs: // > TeleportPortalObject::setStartPosOverride @ 0x3eae22 // > TeleportPortalObject::setStartPos @ 0x3eaf2c // // 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 // void GameObject::setStartPos(GameObject *a1, cocos2d::CCPoint a2) { PlayerObject *p_m_startPosition; // r6 float x; // r5 int v5; // r2 bool v6; // r3 int v7; // r2 bool v8; // r3 p_m_startPosition = (PlayerObject *)&a1->m_startPosition; x = a2.x; if ( !cocos2d::CCPoint::equals(&a1->m_startPosition, (const cocos2d::CCPoint *)LODWORD(a2.x)) ) { v6 = 1; a1->m_isObjectRectDirty = 1; a1->m_isOrientedBoxDirty = 1; a1->m_isDirty = 1; } cocos2d::CCPoint::operator=(p_m_startPosition, x, v5, v6); a1->m_positionX = *(float *)LODWORD(x); a1->m_positionY = *(float *)(LODWORD(x) + 4); cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_lastPosition, x, v7, v8); a1->setPosition(a1, (const cocos2d::CCPoint *)LODWORD(x)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source