// // CustomListView::reloadAll from 0x61e028 to 0x61e3d4 (940 bytes) // // 9 xrefs: // > LevelBrowserLayer::onToggleAllObjects @ 0x6e6b24 // > LevelBrowserLayer::reloadAllObjects @ 0x6ed874 // > LevelBrowserLayer::onEnter @ 0x6edb64 // > MessagesProfilePage::onToggleAllObjects @ 0x8f1ebc // > FRequestProfilePage::onToggleAllObjects @ 0x8f43d4 // > OptionsScrollLayer::cellPerformedAction @ 0xa5ca08 // > SFXBrowser::cellPerformedAction @ 0xa5f0f4 // > LevelListLayer::updateEditMode @ 0xa77b94 // > @ 0x5b8c0 // // 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 CustomListView::reloadAll(CustomListView *a1) { TableView *m_tableView; // x1 cocos2d::CCArray *m_cellArray; // x2 cocos2d::ccArray *v4; // x1 LevelCell **v5; // x20 LevelCell **v6; // x21 LevelCell *v7; // x0 cocos2d::ccArray *v8; // x1 OptionsCell **v9; // x20 __int64 v10; // x0 char *v11; // x22 OptionsCell *v12; // x19 int j; // w21 int v14; // w1 cocos2d::ccArray *v15; // x1 CustomSFXCell **v16; // x19 CustomSFXCell **v17; // x22 CustomSFXCell *v18; // x20 int v19; // w21 cocos2d::ccArray *v20; // x1 SmartTemplateCell **v21; // x20 __int64 v22; // x0 char *v23; // x22 SmartTemplateCell *v24; // x19 int i; // w21 int v26; // w1 cocos2d::ccArray *v27; // x1 GJMessageCell **v28; // x19 GJMessageCell **v29; // x20 GJMessageCell *v30; // x0 cocos2d::ccArray *v31; // x1 GJRequestCell **v32; // x19 GJRequestCell **v33; // x20 GJRequestCell *v34; // x0 cocos2d::ccArray *v35; // x1 CustomSongCell **v36; // x19 CustomSongCell **v37; // x22 CustomSongCell *v38; // x20 int v39; // w21 cocos2d::ccArray *v40; // x1 MapPackCell **v41; // x19 MapPackCell **v42; // x20 MapPackCell *v43; // x0 cocos2d::ccArray *data; // x1 LevelCell **arr; // x19 LevelCell **v46; // x20 LevelCell *v47; // x0 m_tableView = a1->m_tableView; if ( m_tableView ) { m_cellArray = m_tableView->m_cellArray; if ( m_cellArray ) { switch ( a1->m_type ) { case Level: case Level2: data = m_cellArray->data; if ( data->num ) { arr = (LevelCell **)data->arr; v46 = &arr[data->num - 1]; while ( v46 >= arr ) { v47 = *arr; if ( !*arr ) break; ++arr; LevelCell::updateToggle(v47); } } break; case MapPack: v40 = m_cellArray->data; if ( v40->num ) { v41 = (MapPackCell **)v40->arr; v42 = &v41[v40->num - 1]; while ( v42 >= v41 ) { v43 = *v41; if ( !*v41 ) break; ++v41; MapPackCell::reloadCell(v43); } } break; case CustomSong: case CustomMusic: v35 = m_cellArray->data; if ( v35->num ) { v36 = (CustomSongCell **)v35->arr; v37 = &v36[v35->num - 1]; if ( v36 <= v37 ) { v38 = *v36; v39 = 0; if ( *v36 ) { if ( CustomSongCell::shouldReload(*v36) ) goto LABEL_47; while ( 1 ) { ++v36; ++v39; if ( v37 < v36 ) break; v38 = *v36; if ( !*v36 ) break; if ( CustomSongCell::shouldReload(*v36) ) { LABEL_47: CustomSongCell::loadFromObject(v38, v38->m_songInfoObject); CustomSongCell::updateBGColor(v38, v39); } } } } } break; case Request: v31 = m_cellArray->data; if ( v31->num ) { v32 = (GJRequestCell **)v31->arr; v33 = &v32[v31->num - 1]; while ( v33 >= v32 ) { v34 = *v32; if ( !*v32 ) break; ++v32; GJRequestCell::updateToggle(v34); } } break; case Message: v27 = m_cellArray->data; if ( v27->num ) { v28 = (GJMessageCell **)v27->arr; v29 = &v28[v27->num - 1]; while ( v29 >= v28 ) { v30 = *v28; if ( !*v28 ) break; ++v28; GJMessageCell::updateToggle(v30); } } break; case SmartTemplate: v20 = m_cellArray->data; if ( v20->num ) { v21 = (SmartTemplateCell **)v20->arr; v22 = 8LL * v20->num - 8; v23 = (char *)v21 + v22; if ( v21 <= (SmartTemplateCell **)((char *)v21 + v22) ) { v24 = *v21; for ( i = 0; *v21; v24 = *v21 ) { ++v21; SmartTemplateCell::loadFromObject(v24, v24->m_smartTemplate); v26 = i++; SmartTemplateCell::updateBGColor(v24, v26); if ( v23 < (char *)v21 ) break; } } } break; case SFX: case SFX2: v15 = m_cellArray->data; if ( v15->num ) { v16 = (CustomSFXCell **)v15->arr; v17 = &v16[v15->num - 1]; if ( v16 <= v17 ) { v18 = *v16; v19 = 0; if ( *v16 ) { if ( CustomSFXCell::shouldReload(*v16) ) goto LABEL_23; while ( 1 ) { ++v16; ++v19; if ( v17 < v16 ) break; v18 = *v16; if ( !*v16 ) break; if ( CustomSFXCell::shouldReload(*v16) ) { LABEL_23: CustomSFXCell::loadFromObject(v18, v18->m_sfxObject); CustomSFXCell::updateBGColor(v18, v19); } } } } } break; case Options: v8 = m_cellArray->data; if ( v8->num ) { v9 = (OptionsCell **)v8->arr; v10 = 8LL * v8->num - 8; v11 = (char *)v9 + v10; if ( v9 <= (OptionsCell **)((char *)v9 + v10) ) { v12 = *v9; for ( j = 0; *v9; v12 = *v9 ) { ++v9; OptionsCell::loadFromObject(v12, v12->m_optionsObject); v14 = j++; OptionsCell::updateBGColor(v12, v14); if ( v11 < (char *)v9 ) break; } } } break; case Level3: case Level4: v4 = m_cellArray->data; if ( v4->num ) { v5 = (LevelCell **)v4->arr; v6 = &v5[v4->num - 1]; while ( v6 >= v5 ) { v7 = *v5; if ( !*v5 ) break; ++v5; LevelCell::updateCellMode(v7, a1->m_cellMode); } } break; default: return; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source