// // AudioAssetsBrowser::setupList from 0x1001d2078 to 0x1001d2208 (400 bytes) // // 2 xrefs: // > AudioAssetsBrowser::init @ 0x1001d1a94 // > AudioAssetsBrowser::trySetupAudioBrowser @ 0x1001d2248 // // 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 AudioAssetsBrowser::setupList(AudioAssetsBrowser *a1) { cocos2d::CCArray *m_songInfoObjects; // x0 cocos2d::CCDirector *v3; // x0 cocos2d::CCTouchDispatcher *v4; // x0 cocos2d::CCArray *v5; // x20 std::__vector_base::pointer begin; // x22 std::__vector_base::pointer end; // x23 int v8; // w21 MusicDownloadManager *v9; // x0 SongInfoObject *SongInfoObject; // x0 cocos2d::CCDirector *v11; // x0 CustomListView *v12; // x0 GJCommentListLayer *v13; // x0 __n128 v14; // q0 GJCommentListLayer *m_songList; // x19 __n128 v16; // q1 _DWORD v17[4]; // [xsp+0h] [xbp-50h] BYREF m_songInfoObjects = a1->m_songInfoObjects; if ( m_songInfoObjects ) cocos2d::CCObject::release(m_songInfoObjects); if ( a1->m_songList ) { v3 = cocos2d::CCDirector::sharedDirector(); v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3); cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_songList); m_songInfoObjects = (cocos2d::CCArray *)((__int64 (__fastcall *)(GJCommentListLayer *))a1->m_songList->removeMeAndCleanup)(a1->m_songList); a1->m_songList = nullptr; } v5 = (cocos2d::CCArray *)sub_10024A15C(m_songInfoObjects); begin = a1->m_songsIds.__begin_; end = a1->m_songsIds.__end_; while ( begin != end ) { v8 = *begin; v9 = MusicDownloadManager::sharedState(); SongInfoObject = MusicDownloadManager::getSongInfoObject(v9, v8); if ( SongInfoObject ) sub_10024A2D0(v5, SongInfoObject); ++begin; } a1->m_songInfoObjects = v5; cocos2d::CCObject::retain(v5); v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v11); v12 = CustomListView::create(v5, &a1->TableViewCellDelegate, 220.0, 340.0, 0, CustomMusic, 0.0); v13 = GJCommentListLayer::create(v12, "", (cocos2d::ccColor4B)-13487566, 340.0, 220.0, 1); a1->m_songList = v13; v14 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v13, 10); v14.n128_f32[0] = (float)(*(float *)&v17[2] + -340.0) * 0.5; m_songList = a1->m_songList; v16.n128_f32[0] = (float)((float)(*(float *)&v17[3] + -220.0) * 0.5) + -10.0; sub_100022980(v14, v16, v17); ((void (__fastcall *)(GJCommentListLayer *, _DWORD *))m_songList->setPosition)(m_songList, v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source