// // CustomMusicCell::loadFromObject from 0x10010242c to 0x10010255c (304 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x100101054 // // 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 CustomMusicCell::loadFromObject(CustomMusicCell *a1, SongInfoObject *a2) { TableViewCellDelegate *m_cellDelegate; // x0 _BOOL4 v5; // w8 CustomSongWidget *v6; // x20 __n128 v7; // q0 __n128 v8; // q1 int v9; // [xsp+8h] [xbp-28h] BYREF ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1); a1->m_songInfoObject = a2; m_cellDelegate = a1->m_tableView->m_cellDelegate; v5 = !m_cellDelegate || ((unsigned int (__fastcall *)(TableViewCellDelegate *))m_cellDelegate->getCellDelegateType)(m_cellDelegate) == 1; v6 = CustomSongWidget::create(a1->m_songInfoObject, &a1->CustomSongDelegate, 1, 1, 1, 0, 0, 1, v5); v7 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, CustomSongWidget *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v6, 2); v7.n128_f32[0] = a1->m_width * 0.5; v8.n128_f32[0] = a1->m_height * 0.5; sub_100022980(v7, v8, &v9); ((void (__fastcall *)(CustomSongWidget *, int *))v6->setPosition)(v6, &v9); v6->m_isInCell = 1; CustomSongWidget::addExtraVisuals(v6, a1->m_songInfoObject->m_isNew, a1->m_songInfoObject->m_libraryOrder > 0); LODWORD(v6) = a1->m_songInfoObject->m_songID; a1->m_selected = (_DWORD)v6 == ((unsigned int (__fastcall *)(CustomMusicCell *))a1->getActiveSongID)(a1); }