// // MusicDownloadManager::pathForSongFolder from 0x5724c8 to 0x5725be (246 bytes) // // 3 xrefs: // > MusicDownloadManager::pathForSong @ 0x5725e8 // > MusicDownloadManager::parseMusicLibrary @ 0x5787a0 // > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x579536 // // 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 // MusicDownloadManager *__fastcall MusicDownloadManager::pathForSongFolder( MusicDownloadManager *this, MusicDownloadManager *a2, unsigned int a3) { int v5; // r3 unsigned int v7; // r2 MusicDownloadManager *v8; // r0 char *v9; // r1 GameManager *v10; // r0 cocos2d::CCFileUtils *GameVariable; // r0 int v12; // r0 int v13; // r0 int v14; // r1 int v15; // r2 int v16; // r0 int v17; // r0 int v18; // r1 int v19; // r2 int v21; // [sp+4h] [bp-20h] BYREF int v22; // [sp+8h] [bp-1Ch] int v23; // [sp+Ch] [bp-18h] int v24; // [sp+10h] [bp-14h] BYREF int v25; // [sp+14h] [bp-10h] int v26; // [sp+18h] [bp-Ch] int v27; // [sp+1Ch] [bp-8h] *((_DWORD *)this + 1) = 0; v5 = _stack_chk_guard; *(_DWORD *)this = 0; *((_DWORD *)this + 2) = 0; v27 = v5; std::string::__init((int *)this, &unk_B6B226, 0); if ( MusicDownloadManager::isResourceSong(a2, a3, v7) ) { v8 = this; v9 = "songs/"; LABEL_8: std::string::append(v8, v9); return this; } v10 = (GameManager *)GameManager::sharedState(nullptr); GameVariable = (cocos2d::CCFileUtils *)GameManager::getGameVariable(v10, "0033"); if ( GameVariable ) { v12 = cocos2d::CCFileUtils::sharedFileUtils(GameVariable); (*(void (__fastcall **)(int *, int))(*(_DWORD *)v12 + 76))(&v21, v12); if ( (*(_BYTE *)this & 1) != 0 ) { **((_BYTE **)this + 2) = 0; *((_DWORD *)this + 1) = 0; } else { *((_BYTE *)this + 1) = 0; *(_BYTE *)this = 0; } std::string::reserve((int *)this, 0); v13 = v21; v14 = v22; v15 = v23; v21 = 0; v22 = 0; v23 = 0; *(_DWORD *)this = v13; *((_DWORD *)this + 1) = v14; *((_DWORD *)this + 2) = v15; std::string::~string((int)&v21); v8 = this; v9 = "Resources\\"; goto LABEL_8; } v16 = cocos2d::CCFileUtils::sharedFileUtils(nullptr); (*(void (__fastcall **)(int *, int))(*(_DWORD *)v16 + 72))(&v24, v16); if ( (*(_BYTE *)this & 1) != 0 ) { **((_BYTE **)this + 2) = 0; *((_DWORD *)this + 1) = 0; } else { *((_BYTE *)this + 1) = 0; *(_BYTE *)this = 0; } std::string::reserve((int *)this, 0); v17 = v24; v18 = v25; v19 = v26; v24 = 0; v25 = 0; v26 = 0; *(_DWORD *)this = v17; *((_DWORD *)this + 1) = v18; *((_DWORD *)this + 2) = v19; std::string::~string((int)&v24); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source