// // LevelCell::onClick from 0x1400b1800 to 0x1400b1a16 (534 bytes) // // 8 xrefs: // > LevelCell::loadCustomLevelCell @ 0x1400aea3d // > LevelCell::loadCustomLevelCell @ 0x1400aec4e // > LevelCell::loadCustomLevelCell @ 0x1400aecb3 // > LevelCell::loadCustomLevelCell @ 0x1400aedc1 // > LevelCell::loadCustomLevelCell @ 0x1400aeed3 // > LevelCell::loadCustomLevelCell @ 0x1400aefcf // > LevelCell::loadLocalLevelCell @ 0x1400b1030 // > @ 0x1406c7a10 // // 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 // // Hidden C++ exception states: #wind=2 void LevelCell::onClick(LevelCell *a1, cocos2d::CCObject *a2) { int v4; // eax int v5; // eax int v6; // eax __int64 v7; // r9 TableViewCellDelegate *m_cellDelegate; // rcx __int64 v9; // rax FLAlertLayer *v10; // rbx GameLevelManager *v11; // rcx __int128 v12; // [rsp+50h] [rbp-48h] BYREF __int64 v13; // [rsp+60h] [rbp-38h] __int64 v14; // [rsp+68h] [rbp-30h] _BYTE v15[40]; // [rsp+70h] [rbp-28h] BYREF void *v16; // [rsp+A0h] [rbp+8h] if ( a1->m_listType == Level4 && a2->getTag(a2) ) { v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) - 1; if ( v4 ) { v5 = v4 - 1; if ( v5 ) { v6 = v5 - 1; if ( v6 ) { if ( v6 != 1 ) return; v7 = 2; } else { v7 = 5; } } else { v7 = 4; } } else { v7 = 3; } m_cellDelegate = a1->m_tableView->m_cellDelegate; if ( m_cellDelegate ) m_cellDelegate->cellPerformedAction(m_cellDelegate, a1, a1->m_listType, (CellAction)v7, nullptr); } else if ( a1->m_level->m_gameVersion <= 22 ) { v11 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v16 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v11 = (GameLevelManager *)qword_1406C2EC0; } GameLevelManager::gotoLevelPage(v11, a1->m_level); } else { v12 = 0; *(_QWORD *)&v12 = sub_14003AA10(0x40u); v13 = 54; v14 = 63; strcpy((char *)v12, "Please update your application to download this level."); v9 = sub_14003BDB0((__int64)v15, (__int64)&v12); v10 = FLAlertLayer::create(0, (int)"Unavailable", v9, (__int64)"Close", 0, 1132068864, 0, 0, 1065353216); sub_14003A830((__int64)&v12); v10->show(v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source