// // EditorUI::showMaxBasicError from 0x1401b5210 to 0x1401b5347 (311 bytes) // // 4 xrefs: // > EditorUI::onCreate @ 0x1401b253c // > EditorUI::onDuplicate @ 0x1401c55e6 // > EditorUI::doPasteObjects @ 0x1401c5f79 // > @ 0x14091a180 // // 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::showMaxBasicError(__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 max limit of %i objects. You can increase it to %i, but your level may b" "ecome unstable on some devices, so it is recommended to stay below this limit. Levels with object count above" " this limit will display a warning when played online.", 40000, 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)"Increase", 1136525312, 0, 0, 1065353216); sub_14003D310((__int64)&v8); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 64LL))(v7, 125); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7); } }