// // CustomSongCell::loadFromObject from 0x615584 to 0x615758 (468 bytes) // // 3 xrefs: // > CustomListView::reloadAll @ 0x61e328 // > CustomListView::loadCell @ 0x620628 // > @ 0x65af0 // // 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 CustomSongCell::loadFromObject(CustomSongCell *a1, SongInfoObject *a2) { CustomSongWidget *v4; // x22 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCSprite *v6; // x22 CCMenuItemSpriteExtra *v7; // x22 cocos2d::CCNode *v8; // x22 void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 int m_songID; // w20 cocos2d::CCPoint v11; // [xsp+50h] [xbp+40h] BYREF cocos2d::SEL_MenuHandler v12; // 0:x2.16 a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1); a1->m_songInfoObject = a2; v4 = CustomSongWidget::create(a2, &a1->CustomSongDelegate, (bool)&dword_0 + 1, (bool)&dword_0 + 1, 0, 0, 0, 0, 0); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v4, 2); setPosition = v4->setPosition; cocos2d::CCPoint::CCPoint(&v11, a1->m_width * 0.5, a1->m_height * 0.5); setPosition(v4, &v11); v4->m_isInCell = (unsigned __int8)&dword_0 + 1; v6 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png"); v6->setScale(v6, 0.6); v12.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v12.adj = (size_t)CustomSongCell::onDelete; v7 = CCMenuItemSpriteExtra::create(v6, nullptr, v12); CCMenuItemSpriteExtra::setSizeMult(v7, 1.5); v8 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v7, nullptr); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v8, 3); v9 = v8->setPosition; cocos2d::CCPoint::CCPoint(&v11, (float)(a1->m_width * 0.5) + 90.0, (float)(a1->m_height * 0.5) + -24.0); v9(v8, &v11); m_songID = a1->m_songInfoObject->m_songID; a1->m_selected = m_songID == a1->getActiveSongID(a1); }