// // PlayLayer::removeCheckpoint from 0x1403b7f00 to 0x1403b8034 (308 bytes) // // 8 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x140214746 // > PlayLayer::removeAllCheckpoints @ 0x1403b8065 // > UILayer::handleKeypress @ 0x1404cdd63 // > UILayer::onDeleteCheck @ 0x1404ce13a // > @ 0x140699f40 // > @ 0x140699f54 // > @ 0x140699f64 // > @ 0x1406d6fec // // 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::removeCheckpoint(PlayLayer *a1, bool a2) { cocos2d::CCArray *m_checkpointArray; // rcx struct cocos2d::CCObject *Object; // rax GameObject *v6; // rbx cocos2d::CCObject *m_glowSprite; // rcx cocos2d::CCArray *v8; // rcx struct cocos2d::CCObject *v9; // rax __int64 v10; // rdx struct cocos2d::CCObject *v11; // rbx __int64 v12; // rcx if ( cocos2d::CCArray::count(a1->m_checkpointArray) ) { m_checkpointArray = a1->m_checkpointArray; if ( a2 ) Object = cocos2d::CCArray::objectAtIndex(m_checkpointArray, 0); else Object = cocos2d::CCArray::lastObject(m_checkpointArray); v6 = *(GameObject **)&Object[65].m_uIndexInArray; GJBaseGameLayer::removeObjectFromSection(a1, v6); m_glowSprite = v6->m_glowSprite; if ( m_glowSprite ) { cocos2d::CCObject::release(m_glowSprite); v6->m_glowSprite->removeMeAndCleanup(v6->m_glowSprite); v6->m_glowSprite = nullptr; } v6->removeMeAndCleanup(v6); v8 = a1->m_checkpointArray; if ( a2 ) { cocos2d::CCArray::removeObjectAtIndex(v8, 0, 1); } else { cocos2d::CCArray::removeLastObject(v8, 1); if ( a1->m_isPlatformer && a1->m_isPracticeMode ) { if ( cocos2d::CCArray::count(a1->m_checkpointArray) ) { v9 = cocos2d::CCArray::lastObject(a1->m_checkpointArray); LOBYTE(v10) = -1; v11 = v9; v12 = *(_QWORD *)&v9[65].m_uIndexInArray; *(_BYTE *)(v12 + 774) = 0; *(_BYTE *)(v12 + 1007) = 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v12 + 320) + 40LL))(v12 + 320, v10); v11[83].m_uOrderOfArrival = a1->m_gameState.m_commandIndex; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source