// // CustomizeObjectLayer::textChanged from 0x84135c to 0x8415d4 (632 bytes) // // 3 xrefs: // > `non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x8415d8 // > @ 0x4b528 // > @ 0x118c930 // // 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 CustomizeObjectLayer::textChanged(CustomizeObjectLayer *a1, CCTextInputNode *a2) { int v3; // w0 __int64 *m_targetObject; // x20 char *v5; // x0 char *v6; // x0 unsigned int *v7; // x1 int v8; // w2 char *v9; // x21 unsigned int v10; // w0 const char *v11; // x1 char *v12; // x0 cocos2d::CCString *v13; // x0 const char *CString; // x0 unsigned int *v15; // x1 int v16; // w2 unsigned int *v17; // x21 int v18; // w1 char *v20; // [xsp+58h] [xbp+58h] BYREF char *v21; // [xsp+60h] [xbp+60h] BYREF if ( !a1->m_disableTextDelegate ) { v3 = a2->getTag(a2); if ( v3 ) { if ( v3 == 1 ) { m_targetObject = (__int64 *)a1->m_targetObject; CCTextInputNode::getString(a2, (__int64)&v20); sub_D153B8((int)&v21, v20); TextGameObject::updateTextObject(m_targetObject, (const void **)&v21, 0); v5 = v21 - 24; if ( v21 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v21 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *((_DWORD *)v21 - 2); *((_DWORD *)v21 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v5); } v6 = v20 - 24; if ( v20 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v20 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *((_DWORD *)v20 - 2); *((_DWORD *)v20 - 2) = v8 - 1; } if ( v8 <= 0 ) operator delete(v6); } } } else { CCTextInputNode::getString(a2, (__int64)&v21); v9 = v21; v10 = atoi(v21); a1->m_customColorChannel = v10; v11 = (const char *)v10; v12 = v9 - 24; if ( v9 - 24 == (char *)&qword_124B6B0 ) { v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v11); } else { if ( &pthread_create ) { v17 = (unsigned int *)(v9 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *((_DWORD *)v9 - 2); *((_DWORD *)v9 - 2) = v18 - 1; } if ( v18 <= 0 ) operator delete(v12); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a1->m_customColorChannel); } CString = cocos2d::CCString::getCString(v13); ButtonSprite::setString(a1->m_customColorButtonSprite, CString); CustomizeObjectLayer::updateSelected(a1, a1->m_customColorChannel); CustomizeObjectLayer::updateColorSprite(a1); CustomizeObjectLayer::updateChannelLabel(a1, a1->m_customColorChannel); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source