// // CCCounterLabel::updateString from 0x574930 to 0x574aa8 (376 bytes) // // 4 xrefs: // > CCCounterLabel::updateCounter @ 0x574af8 // > CCCounterLabel::updateCounter @ 0x574b2c // > CCCounterLabel::fastUpdateCounter @ 0x574b40 // > @ 0x69eb8 // // 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 CCCounterLabel::updateString(CCCounterLabel *a1) { void (__fastcall *v2)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x21 unsigned __int8 *v3; // x0 cocos2d::CCString *v4; // x0 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x21 const char *CString; // x0 unsigned int *v7; // x2 int v8; // w1 const unsigned __int8 *v9; // [xsp+40h] [xbp+40h] BYREF if ( a1->m_formatterType == 1 ) { v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.2f", (const char *)(unsigned int)a1->m_currentCount, (float)((float)a1->m_currentCount / 100.0)); setString = a1->setString; CString = cocos2d::CCString::getCString(v4); setString(a1, (const unsigned __int8 *)CString); } else { v2 = a1->setString; GameToolbox::intToString( (__int64 *)&v9, (GameToolbox *)(unsigned int)a1->m_currentCount, (int)a1->cocos2d::CCLabelBMFont::cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable); v2(a1, v9); v3 = (unsigned __int8 *)(v9 - 24); if ( v9 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v9 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *((_DWORD *)v9 - 2); *((_DWORD *)v9 - 2) = v8 - 1; } if ( v8 <= 0 ) operator delete(v3); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source