// // MusicDownloadManager::clearUnusedSongs from 0x459b4c to 0x459ba6 (90 bytes) // // 3 xrefs: // > GJSongBrowser::FLAlert_Clicked @ 0x308050 // > LevelBrowserLayer::FLAlert_Clicked @ 0x3bdbaa // > GJAccountManager::backupAccount @ 0x4655a0 // // 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 MusicDownloadManager::clearUnusedSongs(MusicDownloadManager *a1) { GameLevelManager *v2; // r0 unsigned int v3; // r4 cocos2d::CCDictionary *AllUsedSongIDs; // r8 cocos2d::CCArray *AllSongs; // r7 int v6; // r5 v2 = GameLevelManager::sharedState(); v3 = 0; AllUsedSongIDs = GameLevelManager::getAllUsedSongIDs(v2); AllSongs = MusicDownloadManager::getAllSongs(a1); while ( v3 < cocos2d::CCArray::count(AllSongs) ) { v6 = cocos2d::CCArray::objectAtIndex(AllSongs, v3); if ( !MusicDownloadManager::isSongDownloaded(a1, *(_DWORD *)(v6 + 264)) && !cocos2d::CCDictionary::objectForKey(AllUsedSongIDs, *(_DWORD *)(v6 + 264)) ) { MusicDownloadManager::clearSong(a1, *(_DWORD *)(v6 + 264)); } ++v3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source