// // PlayLayer::checkForEnd from 0x1000baf20 to 0x1000bb00c (236 bytes) // // 1 xrefs: // > @ 0x1008b72c8 // // 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 __fastcall PlayLayer::checkForEnd(PlayLayer *a1) { EndPortalObject *m_endPortal; // rsi bool m_flippedX; // al float *v3; // rax float *v4; // rax float v5; // [rsp-24h] [rbp-24h] BYREF float v6; // [rsp-1Ch] [rbp-1Ch] BYREF float v7; // [rsp-14h] [rbp-14h] m_endPortal = a1->m_endPortal; if ( !m_endPortal || a1->m_endChecked ) return; m_flippedX = m_endPortal->m_flippedX; if ( m_flippedX ) goto LABEL_6; EndPortalObject::getSpawnPos((EndPortalObject *)&v5); v7 = v5; v3 = (float *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); if ( *v3 < v7 ) { m_flippedX = a1->m_endPortal->m_flippedX; LABEL_6: if ( !m_flippedX ) return; EndPortalObject::getSpawnPos((EndPortalObject *)&v6); v7 = v6; v4 = (float *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); if ( v7 < *v4 ) return; } a1->m_endChecked = 1; if ( a1->m_sectionYFactor != 0.0 ) { EndPortalObject::updateEndPos(a1->m_endPortal, 0); GJBaseGameLayer::reorderObjectSection(a1, a1->m_endPortal); } EndPortalObject::triggerObject(a1->m_endPortal, a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source