// // MusicDownloadManager::addMusicDownloadDelegate from 0x10064b4d0 to 0x10064b5a7 (215 bytes) // // 12 xrefs: // > EditorUI::init @ 0x100007a27 // > SetupSongTriggerPopup::init @ 0x1002c06c3 // > MenuLayer::init @ 0x10037c183 // > SFXBrowser::init @ 0x10042dd20 // > CustomSFXWidget::init @ 0x1006b6825 // > MusicBrowser::init @ 0x1006e86e9 // > CustomSongWidget::init @ 0x1006f855e // > AudioAssetsBrowser::init @ 0x10089994e // > AudioAssetsPopup::init @ 0x1008b3bfb // > sub_1008F84B0 @ 0x1008f8504 // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f9205 // > NewsPopup::init @ 0x10095882d // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:34:47 +0000 // __int64 __fastcall MusicDownloadManager::addMusicDownloadDelegate(__int64 a1, __int64 a2) { unsigned int v2; // r15d __int64 result; // rax _QWORD *v4; // r15 if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 336)) ) { v2 = 0; while ( 1 ) { result = sub_1007FEFE0(*(_QWORD *)(a1 + 336), v2); if ( *(_QWORD *)(result + 320) == a2 ) break; if ( ++v2 >= (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 336)) ) goto LABEL_5; } } else { LABEL_5: v4 = operator new(0x148u); cocos2d::CCNode::CCNode((__int64)v4); *v4 = off_100B82678; v4[40] = 0; if ( cocos2d::CCNode::init() ) { v4[40] = a2; cocos2d::CCObject::autorelease((__int64)v4); } else { (*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4); v4 = nullptr; } return sub_1007FEBF0(*(_QWORD *)(a1 + 336), v4); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source