// // CCTextInputNode::updateLabel from 0x10009e6b0 to 0x10009e99a (746 bytes) // // 32 xrefs: // > CCTextInputNode::addTextArea @ 0x10009e599 // > CCTextInputNode::setString @ 0x10009eabd // > CCTextInputNode::textChanged @ 0x10009f611 // > CCTextInputNode::onTextFieldDetachWithIME @ 0x1000a0680 // > CustomizeObjectLayer::textInputOpened @ 0x1001f938a // > EditLevelLayer::textInputClosed @ 0x1001fd840 // > EditLevelLayer::textInputOpened @ 0x1001fd9b9 // > SetColorIDPopup::init @ 0x1002ad05b // > SetColorIDPopup::colorSelectClosed @ 0x1002ad203 // > LevelListLayer::textInputClosed @ 0x100360a59 // > LevelListLayer::textInputOpened @ 0x100360b80 // > GJGarageLayer::textInputOpened @ 0x10036c7dd // > SetupPulsePopup::updateTextInputLabel @ 0x1003ae78c // > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003ae970 // > SetupPulsePopup::colorSelectClosed @ 0x1003af2bb // > SetupPulsePopup::colorSelectClosed @ 0x1003af3a7 // > SecretLayer4::updateSearchLabel @ 0x1003b1ff8 // > SecretLayer4::textInputOpened @ 0x1003b41a4 // > SecretLayer5::updateSearchLabel @ 0x10047b348 // > SecretLayer5::onSubmit @ 0x10047b504 // > SecretLayer5::textInputOpened @ 0x10047e5c4 // > SecretLayer2::updateSearchLabel @ 0x10049e328 // > SecretLayer2::textInputOpened @ 0x1004a2134 // > SetupSmartTemplateLayer::textInputOpened @ 0x1004e8a26 // > SecretLayer::updateSearchLabel @ 0x1005fb858 // > SecretLayer::textInputOpened @ 0x1005fd914 // > LevelSearchLayer::updateSearchLabel @ 0x10062a53b // > LevelSearchLayer::textInputOpened @ 0x10062bfd4 // > ColorSelectPopup::updateTextInputLabel @ 0x1007286b0 // > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x100728a40 // > ColorSelectPopup::colorSelectClosed @ 0x10072b59b // > ColorSelectPopup::colorSelectClosed @ 0x10072b694 // // 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 CCTextInputNode::updateLabel(CCTextInputNode *a1, std::string *a2, double a3) { cocos2d::CCLabelBMFont *m_textLabel; // rax unsigned int v6; // eax unsigned __int64 v7; // r13 const std::string::value_type *longStorage; // rsi const char *data; // rsi cocos2d::CCLabelBMFont *v10; // rdi const char *v11; // r15 size_t v12; // rax std::string::size_type v13; // r14 char *v14; // r12 size_t v15; // r13 cocos2d::CCTextFieldTTF *m_textField; // rax int m_uCursorPos; // esi std::string::size_type size; // r14 TextArea *m_textArea; // r15 size_t v20; // rax size_t v21; // r14 char *v22; // r12 size_t v23; // r13 _QWORD __dst[2]; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] std::string __str; // [rsp+20h] [rbp-40h] BYREF m_textLabel = a1->m_textLabel; if ( m_textLabel ) { m_textLabel->m_nExtraKerning = a1->m_kerningAmount; } else if ( !a1->m_textArea ) { return; } v6 = (unsigned int)a2->__r_.__value_.__l.0; if ( (v6 & 1) != 0 ) { if ( a2->__r_.__value_.__l.__size_ ) goto LABEL_6; } else if ( v6 >> 1 ) { LABEL_6: if ( a1->m_usePasswordChar ) { *(_WORD *)&__str.__r_.__value_.__l.0 = 0; v7 = 0; if ( (v6 & 1) != 0 ) goto LABEL_10; while ( (unsigned __int8)v6 >> 1 > v7 ) { while ( 1 ) { std::string::append(&__str, "•"); ++v7; LOBYTE(v6) = a2->__r_.__value_.__s.0; if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) == 0 ) break; LABEL_10: if ( a2->__r_.__value_.__l.__size_ <= v7 ) goto LABEL_16; } } LABEL_16: std::string::operator=(a2, &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); } data = a2->__r_.__value_.__s.__data_; v10 = a1->m_textLabel; if ( v10 ) goto LABEL_19; goto LABEL_39; } if ( (a1->m_caption.m_data.m_short.sizex2 & 1) != 0 ) longStorage = a1->m_caption.m_data.m_long.longStorage; else longStorage = a1->m_caption.m_data.m_short.shortStorage.__elems_; std::string::assign(a2, longStorage); data = a2->__r_.__value_.__s.__data_; v10 = a1->m_textLabel; if ( v10 ) { LABEL_19: if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 ) data = a2->__r_.__value_.__l.__data_; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v10->setString)(v10, data); goto LABEL_22; } LABEL_39: m_textArea = a1->m_textArea; if ( !m_textArea ) goto LABEL_22; if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 ) data = a2->__r_.__value_.__l.__data_; v20 = strlen(data); if ( v20 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_52: sub_100006BF0(a3); v21 = v20; if ( v20 >= 0x17 ) { v23 = 26; if ( (v20 | 7) != 0x17 ) v23 = (v20 | 7) + 1; v22 = (char *)operator new(v23); __p = v22; __dst[0] = v23 + 1; __dst[1] = v21; goto LABEL_49; } LOBYTE(__dst[0]) = 2 * v20; v22 = (char *)__dst + 1; if ( v20 ) LABEL_49: memmove(v22, data, v21); v22[v21] = 0; TextArea::setString(m_textArea, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); LABEL_22: CCTextInputNode::refreshLabel(a1); v11 = (const char *)((__int64 (__fastcall *)(cocos2d::CCTextFieldTTF *))a1->m_textField->getString)(a1->m_textField); v12 = strlen(v11); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_52; v13 = v12; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); __str.__r_.__value_.__r.__words[2] = (std::string::size_type)v14; __str.__r_.__value_.__r.__words[0] = v15 + 1; __str.__r_.__value_.__l.__size_ = v13; goto LABEL_29; } __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v12); v14 = __str.__r_.__value_.__s.__data_; if ( v12 ) LABEL_29: memmove(v14, v11, v13); v14[v13] = 0; if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) { size = __str.__r_.__value_.__l.__size_; operator delete(__str.__r_.__value_.__l.__data_); m_textField = a1->m_textField; if ( size ) goto LABEL_32; LABEL_34: m_textField->m_uCursorPos = -1; m_uCursorPos = -1; goto LABEL_35; } m_textField = a1->m_textField; if ( !(*(_BYTE *)&__str.__r_.__value_.__l.0 >> 1) ) goto LABEL_34; LABEL_32: m_uCursorPos = m_textField->m_uCursorPos; LABEL_35: CCTextInputNode::updateBlinkLabelToChar(a1, m_uCursorPos); }
GD Web Decomp Icon

GD Web Decomp

Raw Source