// // EditorUI::showMaxError from 0x485c50 to 0x485cea (154 bytes) // // 4 xrefs: // > LevelEditorLayer::createObjectsFromString @ 0x46e810 // > EditorUI::onCreate @ 0x48783e // > EditorUI::doPasteObjects @ 0x6f3260 // > EditorUI::onDuplicate @ 0x6f39ce // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:25 +0000 // int __fastcall EditorUI::showMaxError(int this) { int v1; // r4 int v2; // r5 cocos2d::CCString *v3; // r0 const char *CString; // r7 size_t v5; // r0 int *v6; // r5 int v7[3]; // [sp+8h] [bp-14h] BYREF v1 = *(unsigned __int8 *)(this + 464); v2 = this; if ( !*(_BYTE *)(this + 464) ) { *(_BYTE *)(this + 464) = 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 *)&stru_1387C.st_value); v7[0] = v1; v7[1] = v1; v7[2] = v1; CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); std::string::__init(v7, CString, v5); v6 = FLAlertLayer::create( v2 + 316, (cocos2d::CCLabelBMFont *)"Max Objects", (int)v7, (ButtonSprite *)"Cancel", (ButtonSprite *)"Unlimited", 380.0); std::string::~string((int)v7); (*(void (__fastcall **)(int *, int))(*v6 + 36))(v6, 126); return (*(int (__fastcall **)(int *))(*v6 + 656))(v6); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source