// // GJBaseGameLayer::getPortalTargetPos from 0x1001e4318 to 0x1001e43bc (164 bytes) // // 1 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x1001e3e00 // // 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 __fastcall GJBaseGameLayer::getPortalTargetPos( GJBaseGameLayer *a1, TeleportPortalObject *a2, GameObject *a3, PlayerObject *a4) { _DWORD *v4; // x8 _DWORD *v6; // x19 unsigned __int32 v7; // s8 __n128 v8; // q1 __n128 v9; // q0 __int64 v12; // [xsp+8h] [xbp-28h] BYREF cocos2d::CCPoint v13; // 0:kr00_8.8 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v6 = v4; if ( a3 && a2->m_objectID != 747 ) { v13 = ((cocos2d::CCPoint (__fastcall *)(GameObject *))a3->getRealPosition)(a3); result.x = v13.x; result.y = v13.y; } else { v7 = *(_DWORD *)((__int64 (__fastcall *)(PlayerObject *))a4->getPosition)(a4); ((void (__fastcall *)(__int64 *__return_ptr, TeleportPortalObject *))a2->getRealPosition)(&v12, a2); v8.n128_f32[0] = *((float *)&v12 + 1) + a2->m_teleportYOffset; v9.n128_u32[0] = v7; sub_100022980(v9, v8, v6); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source