//
// LocalLevelManager::moveLevelToTop from 0x432f42 to 0x432f84 (66 bytes)
//
// 1 xrefs:
// > EditLevelLayer::onMoveToTop @ 0x3b7c3a
//
// 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 LocalLevelManager::moveLevelToTop(LocalLevelManager *a1, GJGameLevel *a2)
{
if ( a2 )
{
if ( cocos2d::CCArray::containsObject(a1->m_localLevels, a2) )
{
cocos2d::CCObject::retain(a2);
cocos2d::CCArray::removeObject(a1->m_localLevels, a2, 1);
cocos2d::CCArray::insertObject(a1->m_localLevels, a2, 0);
cocos2d::CCObject::release(a2);
LocalLevelManager::updateLevelOrder(a1);
}
}
}