// // ArtistCell::loadFromObject from 0x3359e0 to 0x335bce (494 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x33bc66 // // 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 ArtistCell::loadFromObject(ArtistCell *a1, SongInfoObject *a2) { cocos2d::CCLabelBMFont *v4; // r6 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCMenuItem *v6; // r1 cocos2d::CCNode *v7; // r8 ButtonSprite *v8; // r9 CCMenuItemSpriteExtra *v9; // r9 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 int v11; // r11 cocos2d::CCSprite *v12; // r5 CCMenuItemSpriteExtra *v13; // r4 void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 int v15; // r8 float v16; // [sp+10h] [bp-2Ch] cocos2d::CCPoint v17; // [sp+14h] [bp-28h] BYREF cocos2d::CCPoint v18; // [sp+1Ch] [bp-20h] BYREF void (*v19)(ArtistCell *, cocos2d::CCObject *); // [sp+24h] [bp-18h] int v20; // [sp+28h] [bp-14h] cocos2d::CCPoint v21; // [sp+2Ch] [bp-10h] BYREF a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1); a1->m_songInfo = a2; sub_775C20(&v21, &a2->m_artistName); v4 = cocos2d::CCLabelBMFont::create(); sub_774008(&v21); cocos2d::CCLabelBMFont::limitLabelWidth(v4, 200.0, 0.8, 0.0); a1->m_mainLayer->addChild(a1->m_mainLayer, v4); setAnchorPoint = v4->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v21, 0.0, 0.5); setAnchorPoint(v4, &v21); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int, _DWORD))v4->setPosition_0)(v4, 1097859072, a1->m_height * 0.5); v7 = (cocos2d::CCNode *)cocos2d::CCMenu::create(nullptr, v6); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 3); v8 = ButtonSprite::create( (ButtonSprite *)"View", (const char *)&dword_64, 0, 0.6, 0, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v16); ((void (__fastcall *)(ButtonSprite *, int))v8->setScale)(v8, 1063675494); v19 = ArtistCell::onNewgrounds; v20 = 0; v9 = CCMenuItemSpriteExtra::create( v8, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ArtistCell::onNewgrounds, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v9, 1.2); v7->addChild(v7, v9); setPosition = v9->setPosition; cocos2d::CCPoint::CCPoint(&v18, a1->m_width - 38.0, a1->m_height * 0.5); cocos2d::CCNode::convertToNodeSpace(&v21, v7, &v18); setPosition(v9, &v21); sub_775C20(&v21, &a1->m_songInfo->m_youtubeChannel); v11 = *(_DWORD *)(LODWORD(v21.x) - 12); sub_774008(&v21); if ( v11 ) { v12 = cocos2d::CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v12->setScale)(v12, 1063675494); LODWORD(v21.x) = ArtistCell::onYouTube; v21.y = 0.0; v13 = CCMenuItemSpriteExtra::create( v12, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(ArtistCell::onYouTube, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v13, 1.2); v7->addChild(v7, v13); v14 = v13->setPosition; v15 = (int)v9->getPosition(v9); cocos2d::CCPoint::CCPoint(&v17, -52.0, 0.0); cocos2d::CCPoint::operator+(&v18, v15, &v17); v14(v13, &v18); } }