// // LevelEditorLayer::getSongIDs from 0x4704c0 to 0x47063e (382 bytes) // // 5 xrefs: // > LevelEditorLayer::updateLevelSaveInfo @ 0x470a0c // > EditorPauseLayer::onDownloadAudio @ 0x5092ca // > EditorPauseLayer::init @ 0x509780 // > MusicBrowser::refreshLevelIDList @ 0x6bd8a6 // > MusicBrowser::setupMusicBrowser @ 0x6be84a // // 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:04 +0000 // LevelEditorLayer *__fastcall LevelEditorLayer::getSongIDs(LevelEditorLayer *this, bool *a2, bool *a3) { int v6; // r6 _DWORD *v7; // r0 int v8; // r3 bool v9; // r3 _DWORD *v10; // r2 int *v11; // r6 int v12; // r3 int v13; // t1 unsigned int v14; // r2 int *v15; // r8 int v16; // r3 int v17; // r11 int *v18; // r0 const char *v19; // r0 const char *v20; // r7 size_t v21; // r0 int *v23; // [sp+0h] [bp-1Ch] int v24; // [sp+Ch] [bp-10h] BYREF _DWORD v25[2]; // [sp+10h] [bp-Ch] BYREF int *v26; // [sp+18h] [bp-4h] BYREF _DWORD *v27; // [sp+1Ch] [bp+0h] BYREF unsigned int v28; // [sp+20h] [bp+4h] unsigned int v29[3]; // [sp+24h] [bp+8h] BYREF char v30; // [sp+30h] [bp+14h] BYREF v26 = (int *)&v27; v27 = nullptr; v28 = 0; v6 = *(_DWORD *)(*((_DWORD *)a2 + 352) + 436); if ( v6 > 0 ) { v7 = (_DWORD *)operator new(0x14u); v7[4] = v6; std::__tree::__insert_node_at(&v26, (int)&v27, &v27, v7); } v8 = *((_DWORD *)a2 + 522); if ( v8 ) { v10 = *(_DWORD **)(v8 + 52); if ( *v10 ) { v11 = (int *)v10[3]; v23 = &v11[*v10 - 1]; while ( v11 <= v23 ) { v13 = *v11++; v12 = v13; if ( !v13 ) break; if ( *(_DWORD *)(v12 + 892) == 1934 ) { v24 = *(_DWORD *)(v12 + 1660); if ( v24 > 0 ) std::__tree::__emplace_unique_key_args((int)v25, (int)&v26, &v24, &v24); } } } } if ( *(int *)(*((_DWORD *)a2 + 352) + 436) <= 0 ) v9 = v28 != 0; else v9 = v28 > 1; v14 = v28; *a3 = v9; if ( v14 ) { v15 = v26; v29[0] = 0; v29[1] = 500; v29[2] = (unsigned int)&v30; v16 = 1; while ( v15 != (int *)&v27 ) { v17 = v15[4]; if ( !v16 ) { v25[0] = ","; v25[1] = 0; fmt::BasicWriter::operator<<(v29, ",", 0); } fmt::BasicWriter::operator<<(v29, v17); v18 = std::__tree_next *>(v15); v16 = 0; v15 = v18; } v19 = (const char *)fmt::BasicWriter::c_str((int *)v29); *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v20 = v19; *((_DWORD *)this + 2) = 0; v21 = strlen(v19); std::string::__init((int *)this, v20, v21); fmt::internal::Array::free((int)v29); } else { *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; std::string::__init((int *)this, &unk_B6B226, 0); } std::__tree::~__tree((int)&v26); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source