// // PlayLayer::removeCheckpoint from 0x5d2d38 to 0x5d2e30 (248 bytes) // // 5 xrefs: // > UILayer::onDeleteCheck @ 0x5c5f38 // > PlayLayer::removeAllCheckpoints @ 0x5d2e48 // > PlayLayer::storeCheckpoint @ 0x5d2ecc // > PlayerObject::removePlacedCheckpoint @ 0x623d98 // > @ 0xa5cf0 // // 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) { _BOOL4 v3; // w20 cocos2d::CCArray *m_checkpointArray; // x0 CheckpointObject *v5; // x0 GameObject *Object; // x20 CheckpointObject *v7; // x0 GameObject *v8; // x20 __int64 v9; // x20 v3 = a2; if ( (unsigned int)cocos2d::CCArray::count(a1->m_checkpointArray) ) { m_checkpointArray = a1->m_checkpointArray; if ( v3 ) { v5 = (CheckpointObject *)cocos2d::CCArray::objectAtIndex(m_checkpointArray, 0); Object = CheckpointObject::getObject(v5); GJBaseGameLayer::removeObjectFromSection(a1, Object); GameObject::removeGlow(Object); Object->removeMeAndCleanup(Object); cocos2d::CCArray::removeObjectAtIndex(a1->m_checkpointArray, 0, 1); } else { v7 = (CheckpointObject *)cocos2d::CCArray::lastObject(m_checkpointArray); v8 = CheckpointObject::getObject(v7); GJBaseGameLayer::removeObjectFromSection(a1, v8); GameObject::removeGlow(v8); v8->removeMeAndCleanup(v8); cocos2d::CCArray::removeLastObject(a1->m_checkpointArray, 1); if ( a1->m_isPlatformer && a1->m_isPracticeMode ) { if ( (unsigned int)cocos2d::CCArray::count(a1->m_checkpointArray) ) { v9 = cocos2d::CCArray::lastObject(a1->m_checkpointArray); GameObject::makeVisible(*(GameObject **)(v9 + 3688)); *(_DWORD *)(v9 + 4656) = a1->m_gameState.m_commandIndex; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source