// // TeleportPortalObject::setPosition from 0x7610e4 to 0x7611cc (232 bytes) // // 2 xrefs: // > @ 0x39be8 // > @ 0x116a6f8 // // 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 TeleportPortalObject::setPosition(TeleportPortalObject *a1, const cocos2d::CCPoint *a2) { float x; // s8 float TeleportXOff; // s0 TeleportPortalObject *m_orangePortal; // x19 __int64 v6; // x0 float v7; // [xsp+30h] [xbp+30h] cocos2d::CCPoint v8; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v9; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint v10; // 0:s0.4,4:s1.4 cocos2d::CCPoint::CCPoint(&v8, a2); if ( a1->m_isYellowPortal ) v8.x = a1->getPosition(a1)->x; GameObject::setPosition(a1, &v8); if ( a1->m_orangePortal ) { x = v8.x; TeleportXOff = TeleportPortalObject::getTeleportXOff(a1, nullptr); m_orangePortal = a1->m_orangePortal; v7 = x + TeleportXOff; v6 = (__int64)m_orangePortal->getPosition(m_orangePortal); cocos2d::CCPoint::CCPoint(&v9, v7, *(float *)(v6 + 4)); TeleportPortalObject::setPositionOverride(m_orangePortal, v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source