//
// LevelInfoLayer::levelDeleteFailed from 0x1002b0b80 to 0x1002b0c48 (200 bytes)
//
// 2 xrefs:
// > sub_1002B0C70 @ 0x1002b0c7c
// > ??> @ 0x100b0e310
//
// 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:01 +0000
//
__int64 __fastcall LevelInfoLayer::levelDeleteFailed(__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 + 504);
if ( *(_DWORD *)(result + 328) - *(_DWORD *)(result + 332) == a2 )
{
__p = operator new(0x30u);
v4[0] = 49;
v4[1] = 44;
strcpy((char *)__p, "Level 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 + 648) + 344LL))(*(_QWORD *)(a1 + 648), 0);
}
return result;
}