// // EditLevelLayer::textInputClosed from 0x4a060c to 0x4a076a (350 bytes) // // 1 xrefs: // > `non-virtual thunk to'EditLevelLayer::textInputClosed @ 0x4a0774 // // 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:49 +0000 // int __fastcall EditLevelLayer::textInputClosed(EditLevelLayer *this, CCTextInputNode *a2) { const char *v2; // r9 int result; // r0 int *v6; // r6 int v7; // r8 size_t v8; // r0 int *v9; // r0 int v10; // r9 const char *v11; // r1 CCTextInputNode *String; // r0 int v13; // r7 _BYTE v14[12]; // [sp+4h] [bp-38h] BYREF int v15[3]; // [sp+10h] [bp-2Ch] BYREF int v16[3]; // [sp+1Ch] [bp-20h] BYREF int v17[3]; // [sp+28h] [bp-14h] BYREF result = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2); switch ( result ) { case 1: v6 = (int *)v14; CCTextInputNode::getString((CCTextInputNode *)v14, (int)a2); v7 = *((_DWORD *)this + 87); std::string::basic_string(v15, (int)v14); std::string::operator=((unsigned __int8 *)(v7 + 280), (unsigned __int8 *)v15); std::string::~string((int)v15); CCTextInputNode::getString((CCTextInputNode *)v16, (int)a2); if ( (v16[0] & 1) == 0 ) v2 = (char *)v16 + 1; v17[0] = 0; if ( (v16[0] & 1) != 0 ) v2 = (const char *)v16[2]; v17[1] = 0; v17[2] = 0; v8 = strlen(v2); std::string::__init(v17, v2, v8); CCTextInputNode::updateLabel((float *)a2, (int)v17); std::string::~string((int)v17); v9 = v16; break; case 2: v6 = v15; CCTextInputNode::getString((CCTextInputNode *)v15, (int)a2); v10 = *((_DWORD *)this + 87); std::string::basic_string(v16, (int)v15); LevelTools::base64EncodeString(v17, v16); std::string::operator=((unsigned __int8 *)(v10 + 292), (unsigned __int8 *)v17); std::string::~string((int)v17); std::string::~string((int)v16); if ( (v15[0] & 1) != 0 ) v11 = (const char *)v15[2]; else v11 = (char *)v15 + 1; EditLevelLayer::updateDescText(this, v11); return std::string::~string((int)v6); case 3: v6 = v16; String = CCTextInputNode::getString((CCTextInputNode *)v16, (int)a2); v13 = GameManager::sharedState(String); std::string::basic_string(v17, (int)v16); std::string::operator=((unsigned __int8 *)(v13 + 448), (unsigned __int8 *)v17); v9 = v17; break; default: return result; } std::string::~string((int)v9); return std::string::~string((int)v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source