// // AudioAssetsBrowser::init from 0x1400837b0 to 0x140083d1a (1386 bytes) // // 4 xrefs: // > CustomSongWidget::onInfo @ 0x1400c9e8b // > @ 0x1406684e4 // > @ 0x1406684f4 // > @ 0x1406c6ad4 // // 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 // bool AudioAssetsBrowser::init(AudioAssetsBrowser *a1, std::vector *a2, std::vector *a3) { bool result; // al __int64 v7; // rcx cocos2d::CCDirector *v8; // rax struct cocos2d::CCRect *v9; // rax struct cocos2d::extension::CCScale9Sprite *v10; // rax __int64 v11; // rdx cocos2d::CCNode *v12; // rdi cocos2d::CCNode_vtbl *v13; // rbx const cocos2d::CCSize *v14; // rax cocos2d::CCNode_vtbl *v15; // rbx const cocos2d::CCPoint *v16; // rax struct cocos2d::CCLabelBMFont *v17; // rdi cocos2d::CCLabelBMFont_vtbl *v18; // rbx const cocos2d::CCPoint *v19; // rax __int64 v20; // rcx cocos2d::CCMenu *v21; // rax struct cocos2d::CCSprite *v22; // rax cocos2d::CCNode *v23; // rdi cocos2d::CCNode_vtbl *v24; // rbx struct cocos2d::CCPoint v25; // rax struct cocos2d::CCSprite *v26; // rdi struct cocos2d::CCSprite *v27; // rsi struct cocos2d::CCPoint v28; // rax cocos2d::CCLabelBMFont *v29; // rax cocos2d::CCLayer *m_mainLayer; // rcx cocos2d::CCLabelBMFont_vtbl *v31; // rbx const cocos2d::CCPoint *v32; // rax cocos2d::CCLabelBMFont_vtbl *v33; // rbx const cocos2d::CCPoint *v34; // rax struct cocos2d::CCSprite *v35; // rbx cocos2d::CCNode *v36; // rdi cocos2d::CCNode_vtbl *v37; // rbx struct cocos2d::CCPoint v38; // rax LoadingCircleSprite *v39; // rax cocos2d::CCLayer *v40; // rcx LoadingCircleSprite_vtbl *v41; // rbx const cocos2d::CCPoint *v42; // rax MusicDownloadDelegate *v43; // rbx MusicDownloadManager *v44; // rax cocos2d::CCPoint v45; // [rsp+30h] [rbp-50h] BYREF cocos2d::CCPoint v46; // [rsp+38h] [rbp-48h] BYREF cocos2d::CCRect v47; // [rsp+40h] [rbp-40h] BYREF float v48; // [rsp+B8h] [rbp+38h] float v49; // [rsp+BCh] [rbp+3Ch] result = FLAlertLayer::init_1(a1, 150); if ( result ) { a1->m_noElasticity = 1; sub_1400846D0(&a1->m_songsIds, a2); sub_1400846D0(&a1->m_sfxIds, a3); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8); v9 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v47, 0.0, 0.0, 80.0, 80.0); v10 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v9); LOBYTE(v11) = -1; v12 = v10; v10->setOpacity(&v10->cocos2d::CCRGBAProtocol, v11); v13 = v12->__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v45, 440.0, 290.0); v13->setContentSize(v12, v14); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v12, -1); v15 = v12->__vftable; cocos2d::CCPoint::CCPoint(&v45, v48 * 0.5, v49 * 0.5); v15->setPosition_0(v12, v16); v17 = cocos2d::CCLabelBMFont::create("Audio Assets", "goldFont.fnt"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v17, 10); v18 = v17->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v45, v48 * 0.5, (float)((float)(v49 * 0.5) + 145.0) - 20.0); v18->setPosition_0(v17, v19); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v17->setScale_0)(v17); v21 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v20); a1->m_buttonMenu = v21; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v21, 10); a1->m_joystickConnected = -1; v22 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v23 = CCMenuItemSpriteExtra::create(v22, nullptr, a1, (cocos2d::SEL_MenuHandler *)AudioAssetsBrowser::onClose); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v23); v24 = v23->__vftable; v23[1].m_unknown5 = 1070386381; cocos2d::CCPoint::CCPoint( &v45, (float)((float)(v48 * 0.5) - 220.0) + 10.0, (float)((float)(v49 * 0.5) + 145.0) - 10.0); v25 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v46); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v24->setPosition_0)(v23, v25); v26 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v26->setScale_0)(v26); v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v26->addChild_0(v26, v27, -1); cocos2d::CCPoint::CCPoint(&v46, 15.0, 0.0); v28 = cocos2d::CCNode::convertToNodeSpace(v26, &v47.origin); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v28, &v45); v27->setPosition_0(v27, &v45); v29 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt"); m_mainLayer = a1->m_mainLayer; a1->m_pageIndicatorLabel = v29; m_mainLayer->addChild_0(m_mainLayer, v29, 10); v31 = a1->m_pageIndicatorLabel->__vftable; cocos2d::CCPoint::CCPoint( &v47.origin, (float)((float)(v48 * 0.5) + 220.0) - 50.0, (float)((float)(v49 * 0.5) + 145.0) - 8.0); v31->setPosition_0(a1->m_pageIndicatorLabel, v32); v33 = a1->m_pageIndicatorLabel->__vftable; cocos2d::CCPoint::CCPoint(&v47.origin, 1.0, 1.0); v33->setAnchorPoint(a1->m_pageIndicatorLabel, v34); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_pageIndicatorLabel->setScale_0)(a1->m_pageIndicatorLabel); v35 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v35->setScale_0)(v35); v36 = CCMenuItemSpriteExtra::create(v35, nullptr, a1, (cocos2d::SEL_MenuHandler *)AudioAssetsBrowser::onInfo); v36[1].m_unknown5 = 1067030938; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v36); v37 = v36->__vftable; cocos2d::CCPoint::CCPoint( &v47.origin, (float)((float)(v48 * 0.5) + 220.0) - 14.0, (float)((float)((float)(v49 * 0.5) + 145.0) - 14.0) - 1.0); v38 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v46); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v37->setPosition_0)(v36, v38); v39 = LoadingCircleSprite::create(1.0); v40 = a1->m_mainLayer; a1->m_loadingCircle = v39; v40->addChild_1(v40, v39); v41 = a1->m_loadingCircle->__vftable; cocos2d::CCPoint::CCPoint(&v47.origin, v48 * 0.5, v49 * 0.5); v41->setPosition_0(a1->m_loadingCircle, v42); v43 = &a1->MusicDownloadDelegate; if ( !a1 ) v43 = nullptr; v44 = MusicDownloadManager::sharedState(); MusicDownloadManager::addMusicDownloadDelegate(v44, v43); AudioAssetsBrowser::setupList(a1); return 1; } return result; }