// // CustomizeObjectLayer::textChanged from 0x1400a9810 to 0x1400a9a89 (633 bytes) // // 2 xrefs: // > @ 0x140545418 // > @ 0x1406c7860 // // 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 // // Hidden C++ exception states: #wind=1 void CustomizeObjectLayer::textChanged(CustomizeObjectLayer *a1, CCTextInputNode *a2) { int v4; // eax const char *v5; // rax size_t v6; // rbx const char *v7; // rcx char *v8; // rcx cocos2d::CCString *v9; // rax const char *CString; // rax int x_low; // edx const char *v12; // rdx cocos2d::CCString *v13; // rax const char *v14; // rax size_t v15; // rbx size_t v16; // r8 char **v17; // rdx char *v18; // rcx __int128 v19; // [rsp+28h] [rbp-50h] BYREF __int64 v20; // [rsp+38h] [rbp-40h] __int64 v21; // [rsp+40h] [rbp-38h] char *String[2]; // [rsp+48h] [rbp-30h] BYREF __int128 v23; // [rsp+58h] [rbp-20h] if ( !BYTE2(a1->m_pActionManager) ) { v4 = a2->getTag(a2); if ( v4 ) { if ( v4 == 1 ) { v14 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v23 = 0; v15 = -1; v16 = -1; do ++v16; while ( v14[v16] ); sub_14003A930(String, v14, v16); v17 = String; if ( *((_QWORD *)&v23 + 1) > 0xFu ) v17 = (char **)String[0]; v19 = 0; v20 = 0; v21 = 0; do ++v15; while ( *((_BYTE *)v17 + v15) ); sub_14003A930(&v19, v17, v15); TextGameObject::updateTextObject(*(_QWORD *)&a1->m_uIndexInArray, &v19, 0); if ( *((_QWORD *)&v23 + 1) > 0xFu ) { v18 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v23 + 1) + 1LL) >= 0x1000 ) { v18 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v18 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v18); } } } else { v5 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v23 = 0; v6 = -1; do ++v6; while ( v5[v6] ); sub_14003A930(String, v5, v6); v7 = (const char *)String; if ( *((_QWORD *)&v23 + 1) > 0xFu ) v7 = String[0]; LODWORD(a1->m_obAnchorPointInPoints.x) = atoi(v7); if ( *((_QWORD *)&v23 + 1) > 0xFu ) { v8 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v23 + 1) + 1LL) >= 0x1000 ) { v8 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v8); } v9 = cocos2d::CCString::createWithFormat("%i", a1->m_obAnchorPointInPoints.x); CString = cocos2d::CCString::getCString(v9); ButtonSprite::setString((ButtonSprite *)a1->m_pGrid, CString); CustomizeObjectLayer::updateSelected( (CustomizeObjectLayer *)((char *)a1 - 632), LODWORD(a1->m_obAnchorPointInPoints.x)); CustomizeObjectLayer::updateColorSprite((CustomizeObjectLayer *)((char *)a1 - 632)); x_low = LODWORD(a1->m_obAnchorPointInPoints.x); if ( x_low < 1000 ) { if ( x_low <= 0 ) { v12 = " "; } else { v13 = cocos2d::CCString::createWithFormat("%i", x_low); v12 = cocos2d::CCString::getCString(v13); } } else { v12 = GJSpecialColorSelect::textForColorIdx(x_low); } (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)&a1->m_sTransform.d + 360LL))( *(_QWORD *)&a1->m_sTransform.d + 360LL, v12); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source