//
// LevelListLayer::levelListDeleteFailed from 0x10034c230 to 0x10034c2f0 (192 bytes)
//
// 2 xrefs:
// > sub_10034C310 @ 0x10034c31c
// > ??> @ 0x100b205f0
//
// This function is hookable on this platform (idp: pc, 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 12:28:48 +0000
//
__int64 __fastcall LevelListLayer::levelListDeleteFailed(__int64 a1, int a2)
{
__int64 result; // rax
__int64 v3; // r14
_QWORD v4[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
result = *(_QWORD *)(a1 + 912);
if ( *(_DWORD *)(result + 344) == a2 )
{
__p = operator new(0x30u);
v4[0] = 49;
v4[1] = 43;
strcpy((char *)__p, "List delete failed, please try again later.");
v3 = FLAlertLayer::create_1(0, "Error", v4, "OK", 0, 300.0);
if ( (v4[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), 0);
}
return result;
}