// // GJSongBrowser::customSetup from 0x1005ff020 to 0x1005ff36d (845 bytes) // // 1 xrefs: // > @ 0x10097d908 // // 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 GJSongBrowser::customSetup(GJSongBrowser *a1) { cocos2d::CCMenu *v2; // r14 cocos2d::CCSprite *v3; // rax CCMenuItemSpriteExtra *v4; // rax CCMenuItemSpriteExtra *m_leftArrow; // r12 cocos2d::CCDirector *v6; // rax float v7; // xmm0_4 cocos2d::CCSprite *v8; // r15 CCMenuItemSpriteExtra *v9; // rax CCMenuItemSpriteExtra *m_rightArrow; // r15 cocos2d::CCDirector *v11; // rax cocos2d::CCSprite *v12; // r12 CCMenuItemSpriteExtra *v13; // r15 cocos2d::CCDirector *v14; // rax cocos2d::CCDirector *v15; // rax cocos2d::CCLabelBMFont *v16; // rax cocos2d::CCLabelBMFont *m_countText; // r14 cocos2d::CCDirector *v18; // rax cocos2d::CCDirector *v19; // rax float v20; // xmm1_4 cocos2d::CCLabelBMFont *v21; // r14 MusicDownloadManager *v22; // rax cocos2d::CCArray *DownloadedSongs; // rax GJListLayer *m_listLayer; // rdi char v25; // [rsp+8h] [rbp-48h] BYREF float v26; // [rsp+Ch] [rbp-44h] float v27; // [rsp+10h] [rbp-40h] BYREF float v28; // [rsp+18h] [rbp-38h] float v29; // [rsp+1Ch] [rbp-34h] BYREF float v30; // [rsp+24h] [rbp-2Ch] double v31; // 0:xmm0_8.8 double v32; // 0:xmm0_8.8 double v33; // 0:xmm0_8.8 cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v25); v2 = cocos2d::CCMenu::create(); v30 = v26 * 0.5; v3 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v4 = CCMenuItemSpriteExtra::create( v3, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJSongBrowser::onPrevPage); a1->m_leftArrow = v4; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v2->addChild)(v2, v4); m_leftArrow = a1->m_leftArrow; v6 = cocos2d::CCDirector::sharedDirector(); v7 = sub_100484D90((__int64)v6); sub_10028CBE0(&v27, v7 + 24.0, v30); *(cocos2d::CCPoint *)&v31 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v29, (const cocos2d::CCPoint *)v2); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float *, double))m_leftArrow->setPosition)(m_leftArrow, &v29, v31); v8 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v8, 1); v9 = CCMenuItemSpriteExtra::create( v8, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJSongBrowser::onNextPage); a1->m_rightArrow = v9; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v2->addChild)(v2, v9); m_rightArrow = a1->m_rightArrow; v11 = cocos2d::CCDirector::sharedDirector(); *(float *)&v31 = sub_100484DA0((__int64)v11); sub_10028CBE0(&v27, *(float *)&v31 + -24.0, v30); *(cocos2d::CCPoint *)&v32 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v29, (const cocos2d::CCPoint *)v2); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float *, double))m_rightArrow->setPosition)(m_rightArrow, &v29, v32); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); v13 = CCMenuItemSpriteExtra::create( v12, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJSongBrowser::onDeleteAll); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v2->addChild)(v2, v13); v30 = (float)(0.5 * v12->m_obRect.size.width) + 4.0; v14 = cocos2d::CCDirector::sharedDirector(); *(float *)&v32 = sub_100484DA0((__int64)v14); v28 = *(float *)&v32 - v30; v15 = cocos2d::CCDirector::sharedDirector(); *(float *)&v32 = sub_100484D80((__int64)v15); sub_10028CBE0(&v27, v28, v30 + *(float *)&v32); *(cocos2d::CCPoint *)&v33 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v29, (const cocos2d::CCPoint *)v2); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float *, double))v13->setPosition)(v13, &v29, v33); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v2, 10); v16 = cocos2d::CCLabelBMFont::create_3(" ", "goldFont.fnt"); a1->m_countText = v16; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v16); m_countText = a1->m_countText; v18 = cocos2d::CCDirector::sharedDirector(); v30 = sub_100484DA0((__int64)v18) + -7.0; v19 = cocos2d::CCDirector::sharedDirector(); v20 = sub_100484D70((__int64)v19) + -4.0; sub_10028CBE0(&v29, v30, v20); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float *))m_countText->setPosition)(m_countText, &v29); v21 = a1->m_countText; sub_10028CBE0(&v29, 1.0, 1.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float *))v21->setAnchorPoint)(v21, &v29); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_countText->setScale)(a1->m_countText, 0.60000002); v22 = MusicDownloadManager::sharedState(); DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v22); a1->m_downloadedSongs = DownloadedSongs; cocos2d::CCObject::retain(DownloadedSongs); ((void (__fastcall *)(GJListLayer *, __int64))a1->m_listLayer->setOpacity)(a1->m_listLayer, 255); m_listLayer = a1->m_listLayer; memset(&v29, 50, 3); ((void (__fastcall *)(GJListLayer *, float *))m_listLayer->setColor)(m_listLayer, &v29); }
GD Web Decomp Icon

GD Web Decomp

Raw Source