// // MusicDownloadManager::onDownloadMusicLibraryCompleted from 0x579508 to 0x5795c0 (184 bytes) // // 0 xrefs: // // 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:47 +0000 // unsigned int __fastcall MusicDownloadManager::onDownloadMusicLibraryCompleted( MusicDownloadManager *this, cocos2d::extension::CCHttpClient *a2, cocos2d::extension::CCHttpResponse *a3, int a4) { char *v6; // r0 FILE *v7; // r8 _DWORD v9[2]; // [sp+0h] [bp-10h] BYREF char *filename; // [sp+8h] [bp-8h] int v11; // [sp+Ch] [bp-4h] v9[0] = this; v9[1] = a2; filename = (char *)a3; v11 = a4; MusicDownloadManager::removeDLFromActive(this, "dl_music_l"); if ( !a3 || !*((_BYTE *)a3 + 56) ) return MusicDownloadManager::musicActionFailed((int)this, 7); MusicDownloadManager::pathForSongFolder((MusicDownloadManager *)v9, this, 0); std::string::append(v9, "musiclibrary.dat"); if ( (v9[0] & 1) != 0 ) v6 = filename; else v6 = (char *)v9 + 1; v7 = fopen(v6, "wb"); if ( v7 && (fwrite(*((const void **)a3 + 15), 1u, *((_DWORD *)a3 + 16) - *((_DWORD *)a3 + 15), v7), fclose(v7), MusicDownloadManager::parseMusicLibrary(this), MusicDownloadManager::isMusicLibraryLoaded(this)) ) { MusicDownloadManager::musicActionFinished((int)this, 7); } else { MusicDownloadManager::musicActionFailed((int)this, 7); } return std::string::~string((int)v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source