// // GameLevelManager::getAllUsedSongIDs from 0x4ab278 to 0x4ab32e (182 bytes) // // 1 xrefs: // > MusicDownloadManager::clearUnusedSongs @ 0x57292e // // 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:49:58 +0000 // cocos2d::CCDictionary *__fastcall GameLevelManager::getAllUsedSongIDs(GameLevelManager *this) { LocalLevelManager *v2; // r0 int v3; // r3 cocos2d::CCDictionary *v4; // r5 unsigned int v5; // r4 cocos2d::CCArray *v6; // r7 int v7; // r3 int v8; // r4 int v9; // r6 int v10; // r2 int v11; // r1 int v12; // r0 int v13; // r6 int v14; // r1 cocos2d::CCObject *v15; // r0 cocos2d::CCObject *v16; // r0 v2 = (LocalLevelManager *)cocos2d::CCDictionary::create(this); v3 = *((_DWORD *)this + 136); v4 = v2; if ( v3 ) { v7 = *(_DWORD *)(v3 + 52); if ( v7 ) v8 = *(_DWORD *)(v7 + 272); else v8 = 0; while ( v7 ) { v9 = *(_DWORD *)(v7 + 260); if ( !*(_BYTE *)(v9 + 917) ) { v11 = *(_DWORD *)(v9 + 436); if ( v11 > 0 ) { v2 = (LocalLevelManager *)cocos2d::CCDictionary::objectForKey(v4, v11); if ( !v2 ) { v15 = (cocos2d::CCObject *)cocos2d::CCNode::create(nullptr); v2 = (LocalLevelManager *)cocos2d::CCDictionary::setObject(v4, v15, *(_DWORD *)(v9 + 436)); } } } if ( v8 ) v10 = *(_DWORD *)(v8 + 272); else v10 = 0; v7 = v8; v8 = v10; } } v5 = 0; v6 = *(cocos2d::CCArray **)(LocalLevelManager::sharedState(v2) + 284); while ( v5 < cocos2d::CCArray::count(v6) ) { v12 = cocos2d::CCArray::objectAtIndex(v6, v5); v13 = v12; if ( !*(_BYTE *)(v12 + 917) ) { v14 = *(_DWORD *)(v12 + 436); if ( v14 > 0 && !cocos2d::CCDictionary::objectForKey(v4, v14) ) { v16 = (cocos2d::CCObject *)cocos2d::CCNode::create(nullptr); cocos2d::CCDictionary::setObject(v4, v16, *(_DWORD *)(v13 + 436)); } } ++v5; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source