//
// EditorSoundConfigInfoLayer::onDeleteServer from 0x785a7c to 0x785b34 (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:59:32 +0000
//
int __fastcall EditorSoundConfigInfoLayer::onDeleteServer(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
int *v5; // r5
int v6[3]; // [sp+8h] [bp-10h] BYREF
if ( EditorSoundConfigInfoLayer::isOwner(this) )
{
memset(v6, 0, sizeof(v6));
std::string::__init(v6, "Are you sure you want to delete this sound pack from the server?", 0x48u);
v5 = FLAlertLayer::create(
(int)this + 720,
(cocos2d::CCLabelBMFont *)"Delete Sound Pack",
(int)v6,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Delete",
380.0);
std::string::~string((int)v6);
(*(void (__fastcall **)(int *, int))(*v5 + 36))(v5, 7002);
return (*(int (__fastcall **)(int *))(*v5 + 656))(v5);
}
else
{
std::string::basic_string(v6, *((_DWORD *)this + 187) + 324);
v3 = AdminActionConfirmPopup::createContentDelete(
(int)this + 724,
7002,
"Delete Sound Pack",
(unsigned __int8 *)v6,
9);
(*(void (__fastcall **)(int))(*(_DWORD *)v3 + 656))(v3);
return std::string::~string((int)v6);
}
}