// // EditorUI::showMaxError from 0x1401b50d0 to 0x1401b5204 (308 bytes) // // 5 xrefs: // > EditorUI::onCreate @ 0x1401b250e // > EditorUI::onDuplicate @ 0x1401c55ba // > EditorUI::doPasteObjects @ 0x1401c5f45 // > LevelEditorLayer::createObjectsFromString @ 0x1403f074d // > @ 0x14091a174 // // 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 11:27:57 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall EditorUI::showMaxError(__int64 a1) { cocos2d::CCString *v2; // rax int v3; // edi const char *CString; // rax size_t v5; // r8 __int64 v6; // rax cocos2d::CCObject *v7; // rbx __int128 v8; // [rsp+50h] [rbp-48h] BYREF __int64 v9; // [rsp+60h] [rbp-38h] __int64 v10; // [rsp+68h] [rbp-30h] _BYTE v11[32]; // [rsp+70h] [rbp-28h] BYREF if ( !*(_BYTE *)(a1 + 680) ) { *(_BYTE *)(a1 + 680) = 1; v2 = cocos2d::CCString::createWithFormat( "You have reached the upper max limit of %i objects. This limit can be removed completely, but it is <" "cr>not recommended. Levels with object count above this limit will display a warning when played " "online.\n" "Unoptimized levels that use too many objects have a lower chance of being rated and featured.", 80000); v3 = a1 + 408; if ( !a1 ) v3 = 0; CString = cocos2d::CCString::getCString(v2); v8 = 0; v9 = 0; v10 = 0; v5 = -1; do ++v5; while ( CString[v5] ); sub_14003D230(&v8, CString, v5); v6 = sub_14003F4F0((__int64)v11, (__int64)&v8); v7 = FLAlertLayer::create( v3, (int)"Max Objects", v6, (__int64)"Cancel", (__int64)"Unlimited", 1136525312, 0, 0, 1065353216); sub_14003D310((__int64)&v8); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 64LL))(v7, 126); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7); } }