//
// EditorUI::showMaxCoinError from 0x485dc4 to 0x485e5c (152 bytes)
//
// 1 xrefs:
// > EditorUI::onCreate @ 0x487860
//
// 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::showMaxCoinError(int this, const char *a2)
{
int v2; // r4
int v3; // r7
cocos2d::CCString *v4; // r0
const char *CString; // r8
size_t v6; // r0
int *v7; // r4
int v8[3]; // [sp+8h] [bp-10h] BYREF
v2 = *(unsigned __int8 *)(this + 464);
v3 = this;
if ( !*(_BYTE *)(this + 464) )
{
*(_BYTE *)(this + 464) = 1;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"You cannot add more than 3 coins in a single level.",
a2);
v8[0] = v2;
v8[1] = v2;
v8[2] = v2;
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
std::string::__init(v8, CString, v6);
v7 = FLAlertLayer::create(
v3 + 316,
(cocos2d::CCLabelBMFont *)"Max Coins",
(int)v8,
(ButtonSprite *)"OK",
(ButtonSprite *)v2,
300.0);
std::string::~string((int)v8);
(*(void (__fastcall **)(int *, int))(*v7 + 36))(v7, 122);
return (*(int (__fastcall **)(int *))(*v7 + 656))(v7);
}
return this;
}