//
// SFXBrowser::onExportFile from 0x6c46a8 to 0x6c47bc (276 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:53 +0000
//
size_t __fastcall SFXBrowser::onExportFile(SFXBrowser *this, cocos2d::CCObject *a2)
{
MusicDownloadManager *v3; // r0
int v4; // r2
int CustomSFXCount; // r5
MusicDownloadManager *v6; // r0
void (__fastcall *v7)(SFXBrowser *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v8; // r0
MusicDownloadManager *v9; // r0
size_t result; // r0
void (__fastcall *v11)(SFXBrowser *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v12; // r0
_DWORD *v13; // [sp+8h] [bp-2Ch] BYREF
_DWORD v14[2]; // [sp+Ch] [bp-28h] BYREF
int v15; // [sp+14h] [bp-20h] BYREF
int v16; // [sp+18h] [bp-1Ch]
int v17; // [sp+1Ch] [bp-18h]
int v18; // [sp+20h] [bp-14h] BYREF
int v19; // [sp+24h] [bp-10h]
int v20; // [sp+28h] [bp-Ch]
v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);
v14[0] = 0;
v14[1] = 0;
v13 = v14;
CustomSFXCount = MusicDownloadManager::getCustomSFXCount(v3, &v13, v4, (int)v14);
v6 = (MusicDownloadManager *)std::__tree::~__tree((int)&v13);
if ( CustomSFXCount > 0 )
{
v9 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v6);
result = MusicDownloadManager::exportCustomSFXToFile(v9);
if ( !result )
return result;
v11 = *(void (__fastcall **)(SFXBrowser *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "SFX folders exported", 0x14u);
v18 = 0;
v19 = 0;
v20 = 0;
std::string::__init(&v18, &unk_B6B226, 0);
v12 = TextAlertPopup::create((int)&v15, (cocos2d::CCDelayTime *)0x3F666666, 0.5, 150, (int)&v18);
v11(this, v12, 100);
}
else
{
v7 = *(void (__fastcall **)(SFXBrowser *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232);
v15 = 0;
v16 = 0;
v17 = 0;
std::string::__init(&v15, "No custom folders to export", 0x1Bu);
v18 = 0;
v19 = 0;
v20 = 0;
std::string::__init(&v18, &unk_B6B226, 0);
v8 = TextAlertPopup::create((int)&v15, (cocos2d::CCDelayTime *)0x3F666666, 0.5, 150, (int)&v18);
v7(this, v8, 100);
}
std::string::~string((int)&v18);
return std::string::~string((int)&v15);
}