// // EditorUI::showLockedLayerAlert from 0x10060db30 to 0x10060dc5a (298 bytes) // // 2 xrefs: // > EditorUI::onCreate @ 0x10000ce65 // > EditorUI::pasteObjects @ 0x1005b67c8 // // 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:34:33 +0000 // void __fastcall EditorUI::showLockedLayerAlert(__int64 a1) { __int64 v1; // rax const char *CString; // r15 size_t v3; // rax size_t v4; // r14 char *v5; // r12 char v6; // r15 size_t v7; // r13 std::string v8; // [rsp+0h] [rbp-60h] BYREF __int128 __dst; // [rsp+20h] [rbp-40h] BYREF void *v10; // [rsp+30h] [rbp-30h] v1 = sub_10088E820("Layer %i is locked.", *(_BYTE *)&v8.__r_.__value_.__l.0); CString = (const char *)cocos2d::CCString::getCString(v1); v3 = strlen(CString); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v4 = v3; if ( v3 >= 0x17 ) { v7 = 26; if ( (v3 | 7) != 0x17 ) v7 = (v3 | 7) + 1; v5 = (char *)operator new(v7); v10 = v5; *(_QWORD *)&__dst = v7 + 1; *((_QWORD *)&__dst + 1) = v4; LABEL_9: memmove(v5, CString, v4); v5[v4] = 0; v6 = __dst; if ( (__dst & 1) == 0 ) goto LABEL_5; goto LABEL_10; } LOBYTE(__dst) = 2 * v3; v5 = (char *)&__dst + 1; if ( v3 ) goto LABEL_9; BYTE1(__dst) = 0; v6 = __dst; if ( (__dst & 1) == 0 ) { LABEL_5: v8.__r_.__value_.__r.__words[2] = (std::string::size_type)v10; *(_OWORD *)&v8.__r_.__value_.__l.0 = __dst; goto LABEL_11; } LABEL_10: sub_10001AD30(&v8, v10, *((unsigned __int64 *)&__dst + 1)); LABEL_11: EditorUI::showTextAlert(a1, &v8, 0, 1, 0x7Fu); if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v8.__r_.__value_.__l.__data_); if ( (v6 & 1) != 0 ) operator delete(v10); }