// // LevelListLayer::cellPerformedAction from 0xa78a04 to 0xa78bec (488 bytes) // // 3 xrefs: // > `non-virtual thunk to'LevelListLayer::cellPerformedAction @ 0xa78bf0 // > @ 0x7c7d0 // > @ 0x11efb70 // // 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 LevelListLayer::cellPerformedAction( LevelListLayer *a1, TableViewCell *a2, int a3, CellAction a4, cocos2d::CCNode *a5) { bool v5; // w22 __int64 v7; // x0 GJListLayer *m_list; // x1 int v11; // w23 int v12; // w23 CCContentLayer *m_contentLayer; // x0 float y; // s0 bool result; // w0 GJListLayer *v16; // x0 GJLevelList *m_levelList; // x0 SetIDPopupDelegate *v18; // x19 int v19; // w20 int v20; // w0 SetLevelOrderPopup *v21; // x0 SetLevelOrderPopup_vtbl *v22; // x2 SetLevelOrderPopup *v23; // x20 v5 = a3 == 31 && a4 != 0; if ( !v5 ) return LevelBrowserLayer::cellPerformedAction(a1, a2, a3, a4, a5); v7 = *(_QWORD *)&a2[1].m_uID; m_list = a1->m_list; v11 = *(_DWORD *)(v7 + 328); LODWORD(v7) = *(_DWORD *)(v7 + 332); a1->m_initialListViewY = 0.0; v12 = v11 - v7; if ( m_list ) { m_contentLayer = m_list->m_listView->m_tableView->m_contentLayer; y = m_contentLayer->getPosition(m_contentLayer)->y; a1->m_initialListViewY = y; switch ( a4 ) { case 2: v16 = a1->m_list; v12 = *(_DWORD *)(*(_QWORD *)&a2[1].m_uID + 328LL) - *(_DWORD *)(*(_QWORD *)&a2[1].m_uID + 332LL); if ( v16 ) a1->m_initialListViewY = y + v16->m_listView->m_itemSeparation; goto LABEL_12; case 3: case 4: goto LABEL_8; case 5: goto LABEL_13; default: goto LABEL_4; } } switch ( a4 ) { case 2: LABEL_12: GJLevelList::removeLevelFromList(a1->m_levelList, v12); goto LABEL_9; case 3: case 4: LABEL_8: GJLevelList::reorderLevelStep(a1->m_levelList, v12, a4 == 3); LABEL_9: LevelBrowserLayer::setupLevelBrowser(a1, nullptr); LevelListLayer::updateEditMode(a1); result = v5; break; case 5: LABEL_13: m_levelList = a1->m_levelList; v18 = &a1->SetIDPopupDelegate; v19 = GJLevelList::orderForLevel(m_levelList, v12); v20 = GJLevelList::totalLevels((GJLevelList *)v18[36].__vftable); v21 = SetLevelOrderPopup::create(v12, v19 + 1, v20); v22 = v21->SetIDPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v21->m_delegate = v18; v23 = v21; v22->setTag(v21, 1003); v23->show(v23); result = v5; break; default: LABEL_4: result = v5; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source