// // PlayLayer::checkForEnd from 0x10011f720 to 0x10011f804 (228 bytes) // // 1 xrefs: // > @ 0x10078fd00 // // 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; // x0 float v3; // [xsp+0h] [xbp-30h] float v4; // [xsp+8h] [xbp-28h] cocos2d::CCPoint v5; // 0:kr00_8.8 cocos2d::CCPoint SpawnPos; // 0:kr08_8.8 m_endPortal = a1->m_endPortal; if ( !m_endPortal || a1->m_endChecked ) return; if ( m_endPortal->m_flippedX ) goto LABEL_4; SpawnPos = EndPortalObject::getSpawnPos(m_endPortal); if ( v4 > *(float *)((__int64 (__fastcall *)(PlayerObject *, float, float))a1->m_player1->getPosition)( a1->m_player1, SpawnPos.x, SpawnPos.y) ) { m_endPortal = a1->m_endPortal; if ( !m_endPortal->m_flippedX ) return; LABEL_4: v5 = EndPortalObject::getSpawnPos(m_endPortal); if ( v3 < *(float *)((__int64 (__fastcall *)(PlayerObject *, float, float))a1->m_player1->getPosition)( a1->m_player1, v5.x, v5.y) ) 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