// // MusicDownloadManager::isSongDownloaded from 0x96cf6c to 0x96d09c (304 bytes) // // 10 xrefs: // > GameManager::getMenuMusicFile @ 0x718d38 // > GameManager::getPracticeMusicFile @ 0x718eb0 // > LevelInfoLayer::onPlay @ 0x7e81f8 // > CustomSongWidget::updateSongInfo @ 0x869e88 // > CustomSongWidget::updateWithMultiAssets @ 0x86d780 // > MusicDownloadManager::getDownloadedSongs @ 0x96d0d8 // > MusicDownloadManager::getDownloadedSongs @ 0x96d0fc // > MusicDownloadManager::clearUnusedSongs @ 0x96d3e4 // > AudioAssetsBrowser::onInfo @ 0xbc2020 // > @ 0x700a8 // // This function is hookable on this platform (idp: arm, 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:57:39 +0000 // __int64 __fastcall MusicDownloadManager::isSongDownloaded(MusicDownloadManager *this, int a2) { _BOOL8 isResourceSong; // x0 unsigned int v5; // w20 __int64 v7; // x23 MusicDownloadManager *v8; // x0 char *v9; // x20 unsigned __int8 (__fastcall *v10)(__int64, __int64 *); // x22 size_t v11; // x0 __int64 v12[2]; // [xsp+48h] [xbp+48h] BYREF void *v13; // [xsp+58h] [xbp+58h] __int64 v14[2]; // [xsp+60h] [xbp+60h] BYREF void *v15; // [xsp+70h] [xbp+70h] isResourceSong = MusicDownloadManager::isResourceSong(this, a2); v5 = isResourceSong; if ( !isResourceSong ) { v7 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)isResourceSong); v8 = this; v9 = (char *)v12 + 1; v10 = *(unsigned __int8 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 160LL); MusicDownloadManager::pathForSong(v12, v8, a2); if ( (v12[0] & 1) != 0 ) v9 = (char *)v13; v14[0] = 0; v14[1] = 0; v15 = nullptr; v11 = strlen(v9); std::string::__init(v14, v9, v11); v5 = v10(v7, v14); if ( (v14[0] & 1) != 0 ) operator delete(v15); if ( (v12[0] & 1) != 0 ) operator delete(v13); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source