//
// EditorUI::showMaxError from 0x7c7b08 to 0x7c7c28 (288 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::createObjectsFromString @ 0x7a116c
// > EditorUI::onCreate @ 0x7ca880
// > EditorUI::doPasteObjects @ 0xbd9ee8
// > EditorUI::onDuplicate @ 0xbdab34
// > ??> @ 0x59710
//
// This function is hookable on this platform (idp: arm, 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:54:09 +0000
//
__int64 __fastcall EditorUI::showMaxError(EditorUI *this)
{
cocos2d::CCString *v3; // x0
const char *CString; // x0
size_t v5; // x0
__int64 v6; // x20
char *v7; // [xsp+38h] [xbp+38h]
__int64 v8[2]; // [xsp+40h] [xbp+40h] BYREF
void *v9; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 632) )
{
*((_BYTE *)this + 632) = 1;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"You have reached the upper max limit of %i objects. This li"
"mit can be removed completely, but it is not recommended. L"
"evels with object count above this limit will display a warning"
" when played online.\n"
"Unoptimized levels that use too many objects have a lower chanc"
"e of being rated and featured.",
(const char *)&elf_hash_bucket[19874]);
CString = (const char *)cocos2d::CCString::getCString(v3);
v8[0] = 0;
v7 = (char *)CString;
v8[1] = 0;
v9 = nullptr;
v5 = strlen(CString);
std::string::__init(v8, v7, v5);
v6 = FLAlertLayer::create(
(__int64)this + 408,
(cocos2d::CCLabelBMFont *)"Max Objects",
(char *)v8,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Unlimited",
380.0);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 126);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
return _stack_chk_guard;
}