// // PlayLayer::checkForEnd from 0x30ee34 to 0x30ef12 (222 bytes) // // 0 xrefs: // // 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 PlayLayer::checkForEnd(PlayLayer *a1) { EndPortalObject *m_endPortal; // r1 float x; // s16 EndPortalObject *v4; // r1 float v5; // s16 cocos2d::CCPoint v6; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v7; // [sp+Ch] [bp-Ch] BYREF m_endPortal = a1->m_endPortal; if ( m_endPortal && !a1->m_endChecked ) { if ( !m_endPortal->m_flippedX && (EndPortalObject::getSpawnPos(&v6, m_endPortal), x = v6.x, x <= a1->m_player1->getPosition(a1->m_player1)->x) || (v4 = a1->m_endPortal, v4->m_flippedX) && (EndPortalObject::getSpawnPos(&v7, v4), v5 = v7.x, v5 >= a1->m_player1->getPosition(a1->m_player1)->x) ) { 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