//
// LevelBrowserLayer::onEnter from 0x1004198a4 to 0x100419934 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x100822ee0
//
// 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 __fastcall LevelBrowserLayer::onEnter(LevelBrowserLayer *a1)
{
GJSearchObject *m_searchObject; // x1
SearchType m_searchType; // w8
CustomListView *m_listView; // x0
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 )
{
if ( m_searchType == (Sends|Downloaded) )
{
m_listView = (CustomListView *)a1->m_list->m_listView;
if ( m_listView )
CustomListView::reloadAll(m_listView);
}
else if ( m_searchType != MyLevels && m_searchType != MyLists )
{
LevelBrowserLayer::loadPage(a1, m_searchObject);
}
}
else
{
LevelBrowserLayer::setupLevelBrowser(a1, nullptr);
}
}
}
a1->m_unk = 1;
}