//
// LevelInfoLayer::onUpdate from 0x6d86f4 to 0x6d8788 (148 bytes)
//
// 3 xrefs:
// > ??> @ 0x75eb8
// > LevelInfoLayer::init @ 0x6dbb24
// > ??> @ 0x122bed0
//
// 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 LevelInfoLayer::onUpdate(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
GameLevelManager *v4; // x0
if ( !a1->m_isBusy )
{
if ( LevelInfoLayer::shouldDownloadLevel(a1) )
{
LevelInfoLayer::downloadLevel(a1);
}
else
{
v3 = GameLevelManager::sharedState();
if ( GameLevelManager::isUpdateValid(v3, a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed) )
{
LevelInfoLayer::showUpdateAlert(a1, UpToDate);
}
else
{
GameLevelManager::sharedState()->m_levelUpdateDelegate = &a1->LevelUpdateDelegate;
v4 = GameLevelManager::sharedState();
GameLevelManager::updateLevel(v4, a1->m_level);
}
}
}
}