//
// LevelBrowserLayer::cellPerformedAction from 0x100419934 to 0x1004199d0 (156 bytes)
//
// 3 xrefs:
// > LevelListLayer::cellPerformedAction @ 0x100246530
// > sub_1004199D0 @ 0x1004199d4
// > ??> @ 0x100823180
//
// 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
//
bool __fastcall LevelBrowserLayer::cellPerformedAction(
LevelBrowserLayer *a1,
TableViewCell *a2,
int a3,
CellAction a4,
cocos2d::CCNode *a5)
{
TableViewCellDelegate *m_delegate; // x0
GJSmartTemplate *v7; // x0
SetupSmartTemplateLayer *v8; // x0
if ( a3 == 22 )
{
if ( a4 == Edit )
{
((void (__fastcall *)(LevelBrowserLayer *, _QWORD))a1->onBack)(a1, 0);
v7 = (GJSmartTemplate *)a2[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7->m_prefabIndex = 0;
v8 = SetupSmartTemplateLayer::create(v7);
((void (__fastcall *)(SetupSmartTemplateLayer *))v8->show)(v8);
LOBYTE(m_delegate) = 1;
}
else
{
if ( a4 == Click )
CustomListView::reloadAll((CustomListView *)a1->m_list->m_listView);
LOBYTE(m_delegate) = 0;
}
}
else
{
m_delegate = a1->m_delegate;
if ( m_delegate )
LOBYTE(m_delegate) = ((bool (__fastcall *)(TableViewCellDelegate *, TableViewCell *))m_delegate->cellPerformedAction)(
m_delegate,
a2);
}
return (char)m_delegate;
}