//
// LevelBrowserLayer::onEnter from 0x1402cfc90 to 0x1402cfd22 (146 bytes)
//
// 2 xrefs:
// > ??> @ 0x140585010
// > ??> @ 0x1406d2e40
//
// 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 LevelBrowserLayer::onEnter(LevelBrowserLayer *a1)
{
GJSearchObject *m_searchObject; // rdx
SearchType m_searchType; // ecx
CustomListView *m_listView; // rcx
cocos2d::CCLayer::onEnter(a1);
if ( a1->m_unk )
{
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
m_searchType = m_searchObject->m_searchType;
if ( (unsigned int)(m_searchType - 25) <= 1 )
{
LevelBrowserLayer::setupLevelBrowser(a1, nullptr);
}
else if ( ((m_searchType - 98) & 0xFFFFFFFB) != 0 )
{
if ( m_searchType != (Sends|Downloaded) )
{
LevelBrowserLayer::loadPage(a1, m_searchObject);
a1->m_unk = 1;
return;
}
m_listView = (CustomListView *)a1->m_list->m_listView;
if ( m_listView )
{
CustomListView::reloadAll(m_listView);
a1->m_unk = 1;
return;
}
}
}
}
a1->m_unk = 1;
}