// // CustomMusicCell::loadFromObject from 0x1400b4e70 to 0x1400b50dc (620 bytes) // // 4 xrefs: // > CustomListView::loadCell @ 0x1400ab72d // > @ 0x14066b510 // > @ 0x14066b520 // > @ 0x1406c7b78 // // 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 CustomMusicCell::loadFromObject(CustomMusicCell *a1, SongInfoObject *a2) { SongInfoObject *m_songInfoObject; // rbx TableView *m_tableView; // rax TableViewCellDelegate *m_cellDelegate; // rcx int v6; // eax int v7; // ecx CustomSongDelegate *v8; // rdx CustomSongWidget *v9; // r15 CustomSongWidget_vtbl *v10; // rbx const cocos2d::CCPoint *v11; // rax SongInfoObject *v12; // rax int m_libraryOrder; // ebp const char *v14; // rcx struct cocos2d::CCSprite *v15; // rdi cocos2d::CCSprite_vtbl *v16; // rbx const cocos2d::CCPoint *v17; // rax struct cocos2d::CCRect *v18; // rax struct cocos2d::extension::CCScale9Sprite *v19; // rax cocos2d::CCNode *v20; // rdi cocos2d::CCNode_vtbl *v21; // rbx const cocos2d::CCSize *v22; // rax cocos2d::CCRect v23; // [rsp+50h] [rbp-28h] BYREF cocos2d::CCPoint v24; // [rsp+80h] [rbp+8h] BYREF m_songInfoObject = a2; LOBYTE(a2) = 1; a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2); m_tableView = a1->m_tableView; a1->m_songInfoObject = m_songInfoObject; m_cellDelegate = m_tableView->m_cellDelegate; if ( m_cellDelegate ) { v6 = m_cellDelegate->getCellDelegateType(m_cellDelegate); m_songInfoObject = a1->m_songInfoObject; v7 = v6; } else { v7 = 1; } v8 = &a1->CustomSongDelegate; if ( !a1 ) v8 = nullptr; v9 = CustomSongWidget::create(m_songInfoObject, v8, 1, 1, 1, 0, 0, 1, v7 == 1); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v9, 2); v10 = v9->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v24, a1->m_width * 0.5, a1->m_height * 0.5); v10->setPosition_0(v9, v11); v9->m_isInCell = 1; v12 = a1->m_songInfoObject; m_libraryOrder = v12->m_libraryOrder; if ( v12->m_isNew || m_libraryOrder > 0 ) { v14 = "newMusicIcon_001.png"; if ( m_libraryOrder > 0 ) v14 = "newMusicIcon2_001.png"; v15 = cocos2d::CCSprite::createWithSpriteFrameName(v14); v9->addChild_0(v9, v15, 4); v16 = v15->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v24, -157.0, 20.0); v16->setPosition_0(v15, v17); if ( m_libraryOrder > 0 ) { cocos2d::CCRect::CCRect(&v23, 0.0, 0.0, 80.0, 80.0); v19 = cocos2d::extension::CCScale9Sprite::create("GJ_square07.png", v18); LOWORD(v24.x) = -256; v20 = v19; BYTE2(v24.x) = -1; v19->setColor(&v19->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v24); v21 = v20->__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v24, 320.0, 50.0); v21->setContentSize(v20, v22); v9->addChild_0(v9, v20, -1); } } a1->m_selected = a1->m_songInfoObject->m_songID == a1->getActiveSongID(&a1->CustomSongDelegate); }
GD Web Decomp Icon

GD Web Decomp

Raw Source