// // CustomSongCell::loadFromObject from 0x100102208 to 0x1001023ac (420 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x10010121c // > CustomListView::reloadAll @ 0x10010bd18 // // 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 CustomSongCell::loadFromObject(CustomSongCell *a1, SongInfoObject *a2) { CustomSongWidget *v4; // x20 __n128 v5; // q0 __n128 v6; // q1 cocos2d::CCSprite *v7; // x20 CCMenuItemSpriteExtra *v8; // x20 __int64 v9; // x20 __n128 v10; // q0 __n128 v11; // q1 int v12; // [xsp+8h] [xbp-38h] BYREF cocos2d::SEL_MenuHandler v13; // 0:x3.16 ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1); a1->m_songInfoObject = a2; v4 = CustomSongWidget::create(a2, &a1->CustomSongDelegate, 1, 1, 0, 0, 0, 0, 0); v5 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, CustomSongWidget *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v4, 2); v5.n128_f32[0] = a1->m_width * 0.5; v6.n128_f32[0] = a1->m_height * 0.5; sub_100022980(v5, v6, &v12); ((void (__fastcall *)(CustomSongWidget *, int *))v4->setPosition)(v4, &v12); v4->m_isInCell = 1; v7 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v7->setScale)(v7, 0.6); v13.ptr = (void (__cdecl *)(cocos2d::CCObject *))CustomSongCell::onDelete; v13.adj = 0; v8 = CCMenuItemSpriteExtra::create(v7, nullptr, a1, v13); CCMenuItemSpriteExtra::setSizeMult(v8, 1.5); v9 = sub_1001D7ED0(v8); v10 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, __int64, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v9, 3); v10.n128_f32[0] = (float)(a1->m_width * 0.5) + 90.0; v11.n128_f32[0] = (float)(a1->m_height * 0.5) + -24.0; sub_100022980(v10, v11, &v12); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v9 + 184LL))(v9, &v12); LODWORD(v9) = a1->m_songInfoObject->m_songID; a1->m_selected = (_DWORD)v9 == ((unsigned int (__fastcall *)(CustomSongCell *))a1->getActiveSongID)(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source