// // GameLevelManager::getAllUsedSongIDs from 0x10055af80 to 0x10055b086 (262 bytes) // // 1 xrefs: // > MusicDownloadManager::clearUnusedSongs @ 0x10058ebb9 // // 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 // cocos2d::CCDictionary *__fastcall GameLevelManager::getAllUsedSongIDs(GameLevelManager *a1) { cocos2d::CCDictionary *v1; // rbx cocos2d::CCDictionary *m_onlineLevels; // rax cocos2d::CCDictElement *m_pElements; // r14 cocos2d::CCObject *m_pObject; // r15 intptr_t m_unknown2; // rsi cocos2d::CCNode *v6; // rax cocos2d::CCArray *m_localLevels; // r14 unsigned int v8; // r15d __int64 v9; // rax __int64 v10; // r12 intptr_t v11; // rsi cocos2d::CCNode *v12; // rax v1 = cocos2d::CCDictionary::create(); m_onlineLevels = a1->m_onlineLevels; if ( m_onlineLevels ) { m_pElements = m_onlineLevels->m_pElements; while ( m_pElements ) { m_pObject = m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( !BYTE1(m_pObject[17].m_unknown2) ) { m_unknown2 = m_pObject[10].m_unknown2; if ( m_unknown2 > 0 && !cocos2d::CCDictionary::objectForKey(v1, m_unknown2) ) { v6 = cocos2d::CCNode::create(); cocos2d::CCDictionary::setObject(v1, v6, m_pObject[10].m_unknown2); } } } } m_localLevels = LocalLevelManager::sharedState()->m_localLevels; if ( (unsigned int)sub_100720070(m_localLevels) ) { v8 = 0; do { v9 = sub_1007200C0(m_localLevels, v8); if ( !*(_BYTE *)(v9 + 993) ) { v10 = v9; v11 = *(int *)(v9 + 600); if ( v11 > 0 && !cocos2d::CCDictionary::objectForKey(v1, v11) ) { v12 = cocos2d::CCNode::create(); cocos2d::CCDictionary::setObject(v1, v12, *(int *)(v10 + 600)); } } ++v8; } while ( v8 < (unsigned int)sub_100720070(m_localLevels) ); } return v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source