//
// LevelInfoLayer::cellPerformedAction from 0x100029234 to 0x100029320 (236 bytes)
//
// 2 xrefs:
// > sub_100029354 @ 0x100029358
// > ??> @ 0x1007649e8
//
// 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 LevelInfoLayer::cellPerformedAction(
LevelInfoLayer *a1,
TableViewCell *a2,
int a3,
CellAction a4,
cocos2d::CCNode *a5)
{
bool result; // w0
GJGameLevel *m_level; // x8
cocos2d::CCScene *m_pRunningScene; // x19
__int64 v10; // x0
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v12; // [xsp+17h] [xbp-29h]
void *v13[2]; // [xsp+18h] [xbp-28h] BYREF
char v14; // [xsp+2Fh] [xbp-11h]
result = 0;
if ( a3 == 30 && a4 == Click )
{
m_level = a1->m_level;
if ( m_level )
{
GJLevelList::addLevelToList(
(GJLevelList *)a2[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable,
m_level);
if ( a5 )
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a5->__vftable[1].isIgnoreAnchorPointForPosition)(a5, 0);
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
sub_100009900(v13, "Added to Level List");
sub_100009900(__p, "");
v10 = TextAlertPopup::create(v13, 255, __p, 1.0, 0.5);
((void (__fastcall *)(cocos2d::CCScene *, __int64, __int64))m_pRunningScene->addChild_0)(
m_pRunningScene,
v10,
115);
if ( v12 < 0 )
operator delete(__p[0]);
if ( v14 < 0 )
operator delete(v13[0]);
return 1;
}
else
{
return 0;
}
}
return result;
}