//
// LevelBrowserLayer::cellPerformedAction from 0x100491cc0 to 0x100491d4c (140 bytes)
//
// 2 xrefs:
// > LevelListLayer::cellPerformedAction @ 0x10035f70c
// > ??> @ 0x100942a88
//
// 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; // rdi
GJSmartTemplate *v8; // rdi
SetupSmartTemplateLayer *v9; // rax
if ( a3 != 22 )
{
m_delegate = a1->m_delegate;
if ( m_delegate )
return ((bool (__fastcall *)(TableViewCellDelegate *, TableViewCell *, int, CellAction, LevelBrowserLayer *))m_delegate->cellPerformedAction)(
m_delegate,
a2,
a3,
a4,
a1);
return 0;
}
if ( a4 != Edit )
{
if ( a4 == Click )
CustomListView::reloadAll((CustomListView *)a1->m_list->m_listView);
return 0;
}
((void (__fastcall *)(LevelBrowserLayer *, _QWORD))a1->onBack)(a1, 0);
v8 = (GJSmartTemplate *)a2[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v8->m_prefabIndex = 0;
v9 = SetupSmartTemplateLayer::create(v8);
((void (__fastcall *)(SetupSmartTemplateLayer *))v9->show)(v9);
return 1;
}