// // MusicDownloadManager::onDownloadSFXLibraryCompleted from 0x10015a210 to 0x10015a30c (252 bytes) // // 1 xrefs: // > MusicDownloadManager::downloadSFXLibrary @ 0x10015a10c // // 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 // void __fastcall MusicDownloadManager::onDownloadSFXLibraryCompleted( MusicDownloadManager *a1, cocos2d::extension::CCHttpClient *a2, cocos2d::extension::CCHttpResponse *a3) { std::string *v5; // x0 FILE *v6; // x21 std::string v7; // [xsp+8h] [xbp-38h] BYREF MusicDownloadManager::removeDLFromActive(a1, "dl_sfx_l"); if ( a3 && a3->_succeed ) { MusicDownloadManager::pathForSFXFolder((__int64)a1, 0, (__int64)&v7); std::string::append(&v7, "sfxlibrary.dat"); if ( (v7.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v5 = &v7; else v5 = (std::string *)v7.__r_.__value_.__r.__words[0]; v6 = fopen((const char *)v5, "wb"); if ( v6 ) { fwrite(a3->_responseData.__begin_, 1u, a3->_responseData.__end_ - a3->_responseData.__begin_, v6); fclose(v6); MusicDownloadManager::parseSFXLibrary(a1); MusicDownloadManager::musicActionFinished(a1, (GJMusicAction)1); } else { MusicDownloadManager::musicActionFailed(a1, (GJMusicAction)1); } if ( SHIBYTE(v7.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v7.__r_.__value_.__l.__data_); } else { MusicDownloadManager::musicActionFailed(a1, (GJMusicAction)1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source