// // GJSongBrowser::customSetup from 0x1402b73f0 to 0x1402b7762 (882 bytes) // // 2 xrefs: // > @ 0x14057f9d8 // > @ 0x1406d2558 // // 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 GJSongBrowser::customSetup(GJSongBrowser *a1) { cocos2d::CCDirector *v2; // rax __int64 v3; // rcx cocos2d::CCNode *v4; // rsi struct cocos2d::CCSprite *v5; // rax CCMenuItemSpriteExtra *v6; // rax CCMenuItemSpriteExtra_vtbl *v7; // rbx __int64 v8; // rcx cocos2d::CCDirector *v9; // rax float v10; // xmm0_4 struct cocos2d::CCPoint v11; // rax cocos2d::CCSprite *v12; // rbx CCMenuItemSpriteExtra *v13; // rax CCMenuItemSpriteExtra_vtbl *v14; // rbx __int64 v15; // rcx cocos2d::CCDirector *v16; // rax float v17; // xmm0_4 struct cocos2d::CCPoint v18; // rax struct cocos2d::CCSprite *v19; // rbx CCMenuItemSpriteExtra *v20; // rdi float width; // xmm7_4 CCMenuItemSpriteExtra_vtbl *v22; // rbx __int64 v23; // rcx cocos2d::CCDirector *v24; // rax __int64 v25; // rcx cocos2d::CCDirector *v26; // rax float v27; // xmm0_4 struct cocos2d::CCPoint v28; // rax cocos2d::CCLabelBMFont *v29; // rax cocos2d::CCLayer *m_mainLayer; // rcx cocos2d::CCLabelBMFont_vtbl *v31; // rbx __int64 v32; // rcx cocos2d::CCDirector *v33; // rax __int64 v34; // rcx cocos2d::CCDirector *v35; // rax float v36; // xmm0_4 __int64 v37; // rax float v38; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v39; // rbx const cocos2d::CCPoint *v40; // rax MusicDownloadManager *v41; // rax cocos2d::CCArray *DownloadedSongs; // rax __int64 v43; // rdx cocos2d::CCRGBAProtocol *v44; // rcx _BYTE v45[3]; // [rsp+60h] [rbp+8h] BYREF struct cocos2d::CCPoint v46; // [rsp+70h] [rbp+18h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2); v4 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v3); v5 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v6 = CCMenuItemSpriteExtra::create(v5, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJSongBrowser::onPrevPage); a1->m_leftArrow = v6; v4->addChild_1(v4, v6); v7 = a1->m_leftArrow->__vftable; v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); v10 = cocos2d::CCDirector::getScreenLeft(v9) + 24.0; cocos2d::CCPoint::CCPoint(v10, v10); v11 = cocos2d::CCNode::convertToNodeSpace(v4, &v46); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v7->setPosition_0)(a1->m_leftArrow, v11); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v12, 1); v13 = CCMenuItemSpriteExtra::create(v12, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJSongBrowser::onNextPage); a1->m_rightArrow = v13; v4->addChild_1(v4, v13); v14 = a1->m_rightArrow->__vftable; v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15); v17 = cocos2d::CCDirector::getScreenRight(v16) - 24.0; cocos2d::CCPoint::CCPoint(v17, v17); v18 = cocos2d::CCNode::convertToNodeSpace(v4, &v46); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v14->setPosition_0)(a1->m_rightArrow, v18); v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); v20 = CCMenuItemSpriteExtra::create(v19, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJSongBrowser::onDeleteAll); v4->addChild_1(v4, v20); width = v19->m_obRect.size.width; v22 = v20->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v24 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v23); cocos2d::CCDirector::getScreenBottom(v24); v26 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v25); v27 = cocos2d::CCDirector::getScreenRight(v26) - (float)((float)(width * 0.5) + 4.0); cocos2d::CCPoint::CCPoint(v27, v27); v28 = cocos2d::CCNode::convertToNodeSpace(v4, &v46); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v22->setPosition_0)(v20, v28); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v4, 10); v29 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt"); m_mainLayer = a1->m_mainLayer; a1->m_countText = v29; m_mainLayer->addChild_1(m_mainLayer, v29); v31 = a1->m_countText->__vftable; v33 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v32); cocos2d::CCDirector::getScreenTop(v33); v35 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v34); v36 = (float)(cocos2d::CCDirector::getScreenRight(v35) - 7.0) - 0.0; cocos2d::CCPoint::CCPoint(v36, v36); v38 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v31->setPosition_0)(a1->m_countText, v37); v39 = a1->m_countText->__vftable; cocos2d::CCPoint::CCPoint(v38, 1.0); v39->setAnchorPoint(a1->m_countText, v40); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_countText->setScale_0)(a1->m_countText); v41 = MusicDownloadManager::sharedState(); DownloadedSongs = MusicDownloadManager::getDownloadedSongs(v41); a1->m_downloadedSongs = DownloadedSongs; cocos2d::CCObject::retain(DownloadedSongs); LOBYTE(v43) = -1; a1->m_listLayer->setOpacity(&a1->m_listLayer->cocos2d::CCRGBAProtocol, v43); v44 = &a1->m_listLayer->cocos2d::CCRGBAProtocol; memset(v45, 50, sizeof(v45)); v44->setColor(v44, (const cocos2d::ccColor3B *)v45); }
GD Web Decomp Icon

GD Web Decomp

Raw Source