//
// LevelInfoLayer::onUpdate from 0x3b2178 to 0x3b21d4 (92 bytes)
//
// 0 xrefs:
//
// 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; // r0
GameLevelManager *v4; // r0
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);
}
}
}
}