// // EditorUI::showMaxCoinError from 0x100034ab0 to 0x100034bd0 (288 bytes) // // 1 xrefs: // > EditorUI::onCreate @ 0x10002e1f7 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall EditorUI::showMaxCoinError(EditorUI *a1) { double v1; // xmm0_8 cocos2d::CCString *v2; // rax const char *CString; // r15 size_t v4; // rax size_t v5; // r14 char *v6; // r12 size_t v7; // r13 __int64 v8; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] if ( a1->m_alertShown ) return; a1->m_alertShown = 1; v2 = (cocos2d::CCString *)sub_1007AB580( "You cannot add more than 3 coins in a single level.", __dst[0]); CString = cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v1); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; v6 = (char *)operator new(v7); __p = v6; __dst[0] = v7 + 1; __dst[1] = v5; } else { LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( !v4 ) goto LABEL_10; } memmove(v6, CString, v5); LABEL_10: v6[v5] = 0; v8 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Max Coins", __dst, "OK", 0, 300.0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 72LL))(v8, 122); (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1288LL))(v8); }