// // SFXBrowser::executeBatchDelete from 0xb902b0 to 0xb903d8 (296 bytes) // // 3 xrefs: // > SFXBrowser::FLAlert_Clicked @ 0xb9046c // > SFXBrowser::onBatchDelete @ 0xb92008 // > @ 0xcdbe8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:02:38 +0000 // __int64 __fastcall SFXBrowser::executeBatchDelete(SFXBrowser *this) { SFXBrowser *v1; // x20 SFXBrowser *v2; // x21 SFXBrowser *v3; // x19 MusicDownloadManager *v4; // x0 MusicDownloadManager *v5; // x0 MusicDownloadManager *v6; // x0 SFXSearchResult *v7; // x0 __int64 ActiveFolder; // x19 MusicDownloadManager *v9; // x0 bool v10; // zf MusicDownloadManager *v11; // x0 MusicDownloadManager *CustomSFXObject; // x0 MusicDownloadManager *v13; // x0 cocos2d::CCObject *CustomSFXFolderForID; // x0 __int64 v15; // x19 MusicDownloadManager *v17; // x0 v1 = (SFXBrowser *)((char *)this + 1008); v2 = this; v3 = *((SFXBrowser **)this + 125); while ( v3 != v1 ) { while ( 1 ) { v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this); MusicDownloadManager::deleteCustomSFXObject(v4, *((_DWORD *)v3 + 7)); this = *((SFXBrowser **)v3 + 1); if ( !this ) break; do { v3 = this; this = *(SFXBrowser **)this; } while ( this ); if ( v3 == v1 ) goto LABEL_6; } this = v3; do { v3 = *((SFXBrowser **)v3 + 2); v10 = this == *(SFXBrowser **)v3; this = v3; } while ( !v10 ); } LABEL_6: std::__tree::clear((_QWORD *)v2 + 125); v5 = (MusicDownloadManager *)*((unsigned int *)v2 + 256); if ( (int)v5 > 0 ) { v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v5); if ( !MusicDownloadManager::getCustomSFXObject(v6, *((_DWORD *)v2 + 256)) ) *((_DWORD *)v2 + 256) = 0; } v7 = *((SFXSearchResult **)v2 + 89); if ( !v7 ) return FLAlertLayer::requestRebuild(v2); ActiveFolder = SFXSearchResult::getActiveFolder(v7); if ( !ActiveFolder ) return FLAlertLayer::requestRebuild(v2); v9 = (MusicDownloadManager *)*(unsigned int *)(*((_QWORD *)v2 + 89) + 140LL); if ( (_DWORD)v9 != 4 ) return FLAlertLayer::requestRebuild(v2); v11 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v9); CustomSFXObject = (MusicDownloadManager *)MusicDownloadManager::getCustomSFXObject( v11, *(_DWORD *)(ActiveFolder + 76)); if ( (MusicDownloadManager *)ActiveFolder == CustomSFXObject ) return FLAlertLayer::requestRebuild(v2); v13 = (MusicDownloadManager *)MusicDownloadManager::sharedState(CustomSFXObject); CustomSFXFolderForID = (cocos2d::CCObject *)MusicDownloadManager::getCustomSFXFolderForID( v13, *(_DWORD *)(ActiveFolder + 60)); v15 = *((_QWORD *)v2 + 89); if ( !CustomSFXFolderForID ) { v17 = (MusicDownloadManager *)MusicDownloadManager::sharedState(nullptr); CustomSFXFolderForID = (cocos2d::CCObject *)MusicDownloadManager::getCustomSFXRoot(v17); } SFXSearchResult::setActiveFolder(v15, CustomSFXFolderForID); *(_DWORD *)(*((_QWORD *)v2 + 89) + 96LL) = 0; return FLAlertLayer::requestRebuild(v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source