// // SetIDPopup::updateTextInputLabel from 0x8d1818 to 0x8d195c (324 bytes) // // 6 xrefs: // > SetIDPopup::init @ 0x8d2130 // > SetIDPopup::onItemIDArrow @ 0x8d2818 // > SetIDPopup::onResetValue @ 0x8d282c // > SetLevelOrderPopup::onOrderButton @ 0xa722dc // > SetLevelOrderPopup::onOrderButton @ 0xa722f4 // > @ 0x89da8 // // 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 SetIDPopup::updateTextInputLabel(SetIDPopup *a1) { unsigned __int64 v2; // x1 int m_minimum; // w2 const unsigned __int8 *v4; // x2 cocos2d::CCString *v5; // x0 char *CString; // x0 CCTextInputNode *m_inputNode; // x22 unsigned __int8 *v8; // x0 unsigned int *v9; // x2 int v10; // w1 const unsigned __int8 *v11[2]; // [xsp+40h] [xbp+40h] BYREF LODWORD(v2) = a1->m_value; m_minimum = a1->m_minimum; if ( (int)v2 > a1->m_maximum ) LODWORD(v2) = a1->m_maximum; a1->m_disableDelegate = 1; if ( (int)v2 < m_minimum ) v2 = (unsigned int)m_minimum; else v2 = (unsigned int)v2; v4 = (const unsigned __int8 *)_stack_chk_guard; a1->m_value = v2; v11[1] = v4; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v2); CString = (char *)cocos2d::CCString::getCString(v5); m_inputNode = a1->m_inputNode; sub_D153B8((int)v11, CString); CCTextInputNode::setString(m_inputNode, v11); v8 = (unsigned __int8 *)(v11[0] - 24); if ( (__int64 *)v11[0] - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v11[0] - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *((_DWORD *)v11[0] - 2); *((_DWORD *)v11[0] - 2) = v10 - 1; } if ( v10 <= 0 ) operator delete(v8); } a1->valueChanged(a1); a1->m_disableDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source