// // GJBaseGameLayer::getPortalTarget from 0x1001e4268 to 0x1001e4318 (176 bytes) // // 1 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x1001e3db4 // // 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 // TeleportPortalObject *__fastcall GJBaseGameLayer::getPortalTarget(GJBaseGameLayer *a1, TeleportPortalObject *a2) { TeleportPortalObject *m_orangePortal; // x8 int m_targetGroupID; // w1 cocos2d::CCArray *Group; // x19 int v5; // w0 float v6; // s0 float v7; // s1 m_orangePortal = a2->m_orangePortal; if ( m_orangePortal ) return m_orangePortal; m_targetGroupID = a2->m_targetGroupID; if ( m_targetGroupID < 1 ) return nullptr; Group = GJBaseGameLayer::getGroup(a1, m_targetGroupID); v5 = sub_10024A36C(Group); if ( v5 < 1 ) return nullptr; v6 = 0.0; v7 = 0.0; if ( v5 != 1 ) { qword_10086C9D8 = 214013 * qword_10086C9D8 + 2531011; v7 = (float)(((unsigned __int64)qword_10086C9D8 >> 16) & 0x7FFF) / 32767.0; } if ( v7 != 1.0 ) v6 = v7; return (TeleportPortalObject *)sub_10024A388(Group, (unsigned int)(int)(float)(v6 * (float)(unsigned int)v5)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source