// // CustomizeObjectLayer::textChanged from 0x140143960 to 0x140143c0a (682 bytes) // // 2 xrefs: // > @ 0x140739660 // > @ 0x140917420 // // 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 11:27:10 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall CustomizeObjectLayer::textChanged(__int64 a1, _QWORD *a2) { int v4; // eax _BYTE *v5; // rax size_t v6; // rbx const char *v7; // rcx char *v8; // rcx cocos2d::CCString *v9; // rax char *CString; // rax __int64 v11; // rdx int v12; // edx const char *v13; // rdx cocos2d::CCString *v14; // rax _BYTE *v15; // rax size_t v16; // rbx size_t v17; // r8 char **v18; // rdx char *v19; // rcx __int128 v20; // [rsp+38h] [rbp-60h] BYREF __int64 v21; // [rsp+48h] [rbp-50h] __int64 v22; // [rsp+50h] [rbp-48h] char *String[2]; // [rsp+58h] [rbp-40h] BYREF __int128 v24; // [rsp+68h] [rbp-30h] if ( !*(_BYTE *)(a1 + 378) ) { v4 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2); if ( v4 ) { if ( v4 == 1 ) { v15 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL); *(_OWORD *)String = 0; v24 = 0; v16 = -1; v17 = -1; do ++v17; while ( v15[v17] ); sub_14003D230(String, v15, v17); v18 = String; if ( *((_QWORD *)&v24 + 1) > 0xFu ) v18 = (char **)String[0]; v20 = 0; v21 = 0; v22 = 0; do ++v16; while ( *((_BYTE *)v18 + v16) ); sub_14003D230(&v20, v18, v16); TextGameObject::updateTextObject(*(_QWORD *)(a1 + 144), &v20, 0); if ( *((_QWORD *)&v24 + 1) > 0xFu ) { v19 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v24 + 1) + 1LL) >= 0x1000 ) { v19 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v19 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v19); } } } else { v5 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL); *(_OWORD *)String = 0; v24 = 0; v6 = -1; do ++v6; while ( v5[v6] ); sub_14003D230(String, v5, v6); v7 = (const char *)String; if ( *((_QWORD *)&v24 + 1) > 0xFu ) v7 = String[0]; *(_DWORD *)(a1 + 204) = atoi(v7); if ( *((_QWORD *)&v24 + 1) > 0xFu ) { v8 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v24 + 1) + 1LL) >= 0x1000 ) { v8 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v8); } v9 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 204)); CString = (char *)cocos2d::CCString::getCString(v9); ButtonSprite::setString(*(__int64 **)(a1 + 312), CString); CustomizeObjectLayer::updateSelected(a1 - 544); CustomizeObjectLayer::updateColorSprite(a1 - 544, v11); v12 = *(_DWORD *)(a1 + 204); if ( v12 < 1000 ) { if ( v12 <= 0 ) { v13 = " "; } else { v14 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8); v13 = cocos2d::CCString::getCString(v14); } } else { v13 = (const char *)GJSpecialColorSelect::textForColorIdx((unsigned int)v12); } (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 264) + 360LL))( *(_QWORD *)(a1 + 264) + 360LL, v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source