//
// EditorSoundConfigInfoLayer::deleteEditorSoundFailed from 0x7858e0 to 0x785970 (144 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::deleteEditorSoundFailed @ 0x78598c
//
// 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::deleteEditorSoundFailed(EditorSoundConfigInfoLayer *this, int a2, int a3)
{
int result; // r0
const char *v4; // r7
char *v5; // r8
size_t v6; // r0
int *v7; // r0
int v8[3]; // [sp+8h] [bp-10h] BYREF
result = *((_DWORD *)this + 187);
if ( !result || a2 == *(_DWORD *)(result + 264) )
{
if ( a3 == -21 )
{
v4 = "Featured or popular sound packs cannot be deleted.";
v5 = "Cannot Delete";
}
else
{
v4 = "Could not delete this sound pack from the server.";
v5 = "Delete Failed";
}
memset(v8, 0, sizeof(v8));
v6 = strlen(v4);
std::string::__init(v8, v4, v6);
v7 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)v5, (int)v8, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(int *))(*v7 + 656))(v7);
return std::string::~string((int)v8);
}
return result;
}