// // CustomSongCell::loadFromObject from 0x3350e4 to 0x335224 (320 bytes) // // 2 xrefs: // > CustomListView::reloadAll @ 0x33a678 // > CustomListView::loadCell @ 0x33bb58 // // 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; // r7 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v6; // r7 CCMenuItemSpriteExtra *v7; // r7 cocos2d::CCNode *v8; // r7 void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int m_songID; // r5 cocos2d::CCPoint v11; // [sp+1Ch] [bp-18h] BYREF cocos2d::CCPoint v12; // [sp+24h] [bp-10h] BYREF 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(&v12, a1->m_width * 0.5, a1->m_height * 0.5); setPosition(v4, &v12); v4->m_isInCell = 1; v6 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v6->setScale)(v6, 1058642330); LODWORD(v12.x) = CustomSongCell::onDelete; v12.y = 0.0; v7 = CCMenuItemSpriteExtra::create( v6, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(CustomSongCell::onDelete, (unsigned int)a1)); 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); }
GD Web Decomp Icon

GD Web Decomp

Raw Source