// // SetupPulsePopup::updateColorLabels from 0x8ed140 to 0x8ed4d0 (912 bytes) // // 2 xrefs: // > SetupPulsePopup::colorValueChanged @ 0x8ed554 // > @ 0xa39e0 // // 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 SetupPulsePopup::updateColorLabels(SetupPulsePopup *a1) { const unsigned __int8 *v2; // x2 const char *r; // x1 bool m_disableTextDelegate; // w25 CCTextInputNode *m_rInput; // x21 cocos2d::CCString *v6; // x0 char *CString; // x0 unsigned __int8 *v8; // x0 CCTextInputNode *m_gInput; // x26 cocos2d::CCString *v10; // x0 char *v11; // x0 unsigned __int8 *v12; // x0 CCTextInputNode *m_bInput; // x24 cocos2d::CCString *v14; // x0 char *v15; // x0 unsigned __int8 *v16; // x0 CCTextInputNode *m_hexInput; // x24 unsigned __int8 *v18; // x0 char *v19; // x0 unsigned int *v20; // x1 int v21; // w2 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x1 int v25; // w2 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 char *v30; // [xsp+78h] [xbp+78h] BYREF const unsigned __int8 *v31[2]; // [xsp+80h] [xbp+80h] BYREF v2 = (const unsigned __int8 *)_stack_chk_guard; r = (const char *)a1->m_currentColor.r; m_disableTextDelegate = a1->m_disableTextDelegate; a1->m_disableTextDelegate = 1; v31[1] = v2; m_rInput = a1->m_rInput; v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", r); CString = (char *)cocos2d::CCString::getCString(v6); sub_D153B8((int)v31, CString); CCTextInputNode::setString(m_rInput, v31); v8 = (unsigned __int8 *)(v31[0] - 24); if ( (__int64 *)v31[0] - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v31[0] - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *((_DWORD *)v31[0] - 2); *((_DWORD *)v31[0] - 2) = v21 - 1; } if ( v21 <= 0 ) operator delete(v8); } m_gInput = a1->m_gInput; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)a1->m_currentColor.g); v11 = (char *)cocos2d::CCString::getCString(v10); sub_D153B8((int)v31, v11); CCTextInputNode::setString(m_gInput, v31); v12 = (unsigned __int8 *)(v31[0] - 24); if ( (__int64 *)v31[0] - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v31[0] - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *((_DWORD *)v31[0] - 2); *((_DWORD *)v31[0] - 2) = v23 - 1; } if ( v23 <= 0 ) operator delete(v12); } m_bInput = a1->m_bInput; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)a1->m_currentColor.b); v15 = (char *)cocos2d::CCString::getCString(v14); sub_D153B8((int)v31, v15); CCTextInputNode::setString(m_bInput, v31); v16 = (unsigned __int8 *)(v31[0] - 24); if ( (__int64 *)v31[0] - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v31[0] - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *((_DWORD *)v31[0] - 2); *((_DWORD *)v31[0] - 2) = v25 - 1; } if ( v25 <= 0 ) operator delete(v16); } m_hexInput = a1->m_hexInput; ColorSelectPopup::colorToHex(*(_QWORD *)&a1->m_currentColor.r, &v30); sub_D153B8((int)v31, v30); CCTextInputNode::setString(m_hexInput, v31); v18 = (unsigned __int8 *)(v31[0] - 24); if ( (__int64 *)v31[0] - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v31[0] - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *((_DWORD *)v31[0] - 2); *((_DWORD *)v31[0] - 2) = v27 - 1; } if ( v27 <= 0 ) operator delete(v18); } v19 = v30 - 24; if ( v30 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v30 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *((_DWORD *)v30 - 2); *((_DWORD *)v30 - 2) = v29 - 1; } if ( v29 <= 0 ) operator delete(v19); } a1->m_disableTextDelegate = m_disableTextDelegate; }
GD Web Decomp Icon

GD Web Decomp

Raw Source