// // SFXBrowser::onBatchDelete from 0x6c5b9c to 0x6c5c94 (248 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:56:54 +0000 // GameManager *__fastcall SFXBrowser::onBatchDelete(GameManager *this, cocos2d::CCObject *a2) { SFXBrowser *v2; // r4 GameManager *v3; // r7 int v4; // r6 GameManager *v5; // r9 const char *v6; // r5 MusicDownloadManager *v7; // r0 int CustomSFXObject; // r0 cocos2d::CCString *v9; // r0 const char *CString; // r6 size_t v11; // r0 int *v12; // r4 int v13[3]; // [sp+8h] [bp-14h] BYREF v2 = this; if ( *((_DWORD *)this + 174) ) { v3 = *((GameManager **)this + 172); v4 = 0; v5 = (GameManager *)((char *)this + 692); v6 = nullptr; while ( v3 != v5 ) { v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this); CustomSFXObject = MusicDownloadManager::getCustomSFXObject(v7, *((_DWORD *)v3 + 4)); if ( CustomSFXObject ) { ++v6; if ( *(_BYTE *)(CustomSFXObject + 68) ) { if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(CustomSFXObject + 112)) ) v4 = 1; } } this = (GameManager *)std::__tree_next *>(v3); v3 = this; } if ( v6 ) { if ( v6 == (_BYTE *)&dword_0 + 1 && !v4 ) { return (GameManager *)SFXBrowser::executeBatchDelete(v2); } else { v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Delete %i selected?", v6); memset(v13, 0, sizeof(v13)); CString = (const char *)cocos2d::CCString::getCString(v9); v11 = strlen(CString); std::string::__init(v13, CString, v11); v12 = FLAlertLayer::create( (int)v2 + 536, (cocos2d::CCLabelBMFont *)"Delete SFX", (int)v13, (ButtonSprite *)"Cancel", (ButtonSprite *)"Delete", 300.0); std::string::~string((int)v13); (*(void (__fastcall **)(int *, int))(*v12 + 36))(v12, 10); return (GameManager *)(*(int (__fastcall **)(int *))(*v12 + 656))(v12); } } else { std::__tree::clear((int)v2 + 688); return SFXBrowser::updateSelectionUI(v2); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source