// // MusicDownloadManager::limitDownloadedSongs from 0x5727c4 to 0x572810 (76 bytes) // // 1 xrefs: // > MusicDownloadManager::onDownloadSongCompleted @ 0x5728ec // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:52:39 +0000 // unsigned int __fastcall MusicDownloadManager::limitDownloadedSongs(MusicDownloadManager *this) { GameManager *v2; // r0 int v3; // r6 int v4; // r7 size_t **i; // r4 unsigned int result; // r0 int v7; // r1 v2 = (GameManager *)GameManager::sharedState(this); v3 = *((_DWORD *)v2 + 227); v4 = *(_DWORD *)(GameManager::sharedState(v2) + 912); for ( i = MusicDownloadManager::getDownloadedSongs(this); ; cocos2d::CCArray::removeLastObject( (cocos2d::CCArray *)i, 1) ) { result = cocos2d::CCArray::count((cocos2d::CCArray *)i); if ( result <= 0x32 ) break; v7 = *(_DWORD *)(cocos2d::CCArray::lastObject((cocos2d::CCArray *)i) + 264); if ( v7 != v3 && v7 != v4 ) MusicDownloadManager::deleteSong(this, v7); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source