//
// LocalLevelManager::moveLevelToTop from 0x7e94bc to 0x7e9530 (116 bytes)
//
// 2 xrefs:
// > EditLevelLayer::onMoveToTop @ 0x6e254c
// > ??> @ 0xafad0
//
// 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 ( (unsigned __int8)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);
}
}
}