//
// LevelListCell::onClick from 0x100112e48 to 0x100112f14 (204 bytes)
//
// 1 xrefs:
// > LevelListCell::loadFromList @ 0x100103f18
//
// 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 LevelListCell::onClick(LevelListCell *a1, cocos2d::CCObject *a2)
{
TableViewCellDelegate *m_cellDelegate; // x0
cocos2d::CCDirector *v4; // x20
cocos2d::CCScene *v5; // x0
cocos2d::CCTransitionFade *v6; // x1
GameLevelManager *v7; // x0
cocos2d::CCDirector *v8; // x20
cocos2d::CCScene *v9; // x0
cocos2d::CCTransitionFade *v10; // x1
if ( a1->m_addingLevel )
{
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( m_cellDelegate )
((void (__fastcall *)(TableViewCellDelegate *, LevelListCell *, __int64, __int64, _QWORD))m_cellDelegate->cellPerformedAction)(
m_cellDelegate,
a1,
30,
1,
0);
}
else if ( a1->m_levelList->m_listType == Editor )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = LevelListLayer::scene(a1->m_levelList);
v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
}
else
{
v7 = GameLevelManager::sharedState();
GameLevelManager::updateSavedLevelList(v7, a1->m_levelList);
v8 = cocos2d::CCDirector::sharedDirector();
v9 = LevelListLayer::scene(a1->m_levelList);
v10 = cocos2d::CCTransitionFade::create_1(0.5, v9);
cocos2d::CCDirector::pushScene(v8, v10);
}
}