// // CustomizeObjectLayer::updateKerningLabel from 0x10004fcd8 to 0x10004fdd4 (252 bytes) // // 2 xrefs: // > CustomizeObjectLayer::init @ 0x10004eb2c // > CustomizeObjectLayer::sliderChanged @ 0x10004fcd4 // // 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 __fastcall CustomizeObjectLayer::updateKerningLabel(CustomizeObjectLayer *a1) { __int64 v2; // x0 void **v3; // x1 std::string::size_type v4; // x2 cocos2d::CCLabelBMFont *m_kerningLabel; // x0 std::string *v6; // x1 CCTextInputNode *m_textInput; // x20 void *v8[2]; // [xsp+8h] [xbp-58h] BYREF char v9; // [xsp+1Fh] [xbp-41h] void *__p[2]; // [xsp+20h] [xbp-40h] BYREF unsigned __int8 v11; // [xsp+37h] [xbp-29h] std::string v12; // [xsp+38h] [xbp-28h] BYREF if ( a1->m_kerningLabel ) { sub_100009900(&v12, "Kerning: "); v2 = ((__int64 (__fastcall *)(GameObject *))a1->m_targetObject->getTextKerning)(a1->m_targetObject); GameToolbox::intToString(v2, __p); if ( (v11 & 0x80u) == 0 ) v3 = __p; else v3 = (void **)__p[0]; if ( (v11 & 0x80u) == 0 ) v4 = v11; else v4 = (std::string::size_type)__p[1]; std::string::append(&v12, (const std::string::value_type *)v3, v4); if ( (char)v11 < 0 ) operator delete(__p[0]); m_kerningLabel = a1->m_kerningLabel; m_kerningLabel->m_nExtraKerning = a1->m_kerningAmount; if ( (v12.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v6 = &v12; else v6 = (std::string *)v12.__r_.__value_.__r.__words[0]; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))m_kerningLabel->setString)(m_kerningLabel, v6); m_textInput = a1->m_textInput; if ( m_textInput ) { m_textInput->m_kerningAmount = a1->m_kerningAmount; CCTextInputNode::getString(v8, m_textInput); CCTextInputNode::setString(m_textInput, v8); if ( v9 < 0 ) operator delete(v8[0]); } if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v12.__r_.__value_.__l.__data_); } }