// // SetupOpacityPopup::updateDurLabel from 0x8e7a1c to 0x8e7b84 (360 bytes) // // 3 xrefs: // > SetupOpacityPopup::init @ 0x8e8750 // > SetupOpacityPopup::sliderChanged @ 0x8e8ea4 // > @ 0x303f0 // // 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 // // local variable allocation has failed, the output may be wrong! void SetupOpacityPopup::updateDurLabel(SetupOpacityPopup *a1, bool a2) { _BOOL8 v2; // x1 float m_fadeTime; // s0 const unsigned __int8 *v5; // x0 cocos2d::CCString *v6; // x0 char *CString; // x1 CCTextInputNode *m_fadeTimeInput; // x22 unsigned __int8 *v9; // x0 cocos2d::CCString *v10; // x0 unsigned int *v11; // x2 int v12; // w1 const unsigned __int8 *v13[2]; // [xsp+40h] [xbp+40h] BYREF v2 = a2; m_fadeTime = a1->m_fadeTime; v5 = (const unsigned __int8 *)_stack_chk_guard; a1->m_disableTextDelegate = 1; v13[1] = v5; if ( m_fadeTime == -99999.0 ) { CString = "Mixed"; } else if ( !a2 && (*(_QWORD *)&a2 = (unsigned int)(int)m_fadeTime, (float)(m_fadeTime - (float)a2) == 0.0) ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2); CString = (char *)cocos2d::CCString::getCString(v10); } else { v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", (const char *)a2, m_fadeTime); CString = (char *)cocos2d::CCString::getCString(v6); } m_fadeTimeInput = a1->m_fadeTimeInput; sub_D153B8((int)v13, CString); CCTextInputNode::setString(m_fadeTimeInput, v13); v9 = (unsigned __int8 *)(v13[0] - 24); if ( (__int64 *)v13[0] - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v13[0] - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13[0] - 2); *((_DWORD *)v13[0] - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v9); } a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source