// // MusicDownloadManager::limitDownloadedSongs from 0x96d158 to 0x96d1e0 (136 bytes) // // 2 xrefs: // > MusicDownloadManager::onDownloadSongCompleted @ 0x96d34c // > @ 0xed0d0 // // 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 // cocos2d::CCArray *__fastcall MusicDownloadManager::limitDownloadedSongs(MusicDownloadManager *this) { GameManager *v2; // x0 int v3; // w21 int v4; // w22 cocos2d::CCArray *i; // x19 int v6; // w2 bool v7; // cc cocos2d::CCArray *result; // x0 v2 = (GameManager *)GameManager::sharedState(this); v3 = *((_DWORD *)v2 + 285); v4 = *(_DWORD *)(GameManager::sharedState(v2) + 1144); for ( i = MusicDownloadManager::getDownloadedSongs(this); ; cocos2d::CCArray::removeLastObject(i, 1) ) { v7 = (unsigned int)cocos2d::CCArray::count(i) > 0x32; result = i; if ( !v7 ) break; v6 = *(_DWORD *)(cocos2d::CCArray::lastObject(i) + 316); if ( v3 != v6 && v4 != v6 ) MusicDownloadManager::deleteSong(this, v6); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source