// // CCCounterLabel::updateString from 0x2e588c to 0x2e5910 (132 bytes) // // 2 xrefs: // > CCCounterLabel::updateCounter @ 0x2e598a // > CCCounterLabel::fastUpdateCounter @ 0x2e599c // // 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) { const char *v1; // r1 cocos2d::CCString *v3; // r0 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r6 const char *CString; // r0 void (__fastcall *v6)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7 CCCounterLabel *v7; // [sp+0h] [bp-Ch] BYREF v7 = a1; if ( a1->m_formatterType == 1 ) { v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.2f", v1, (float)((float)a1->m_currentCount / 100.0)); setString = a1->setString; CString = cocos2d::CCString::getCString(v3); setString(a1, (const unsigned __int8 *)CString); } else { v6 = a1->setString; GameToolbox::intToString((GameToolbox *)&v7, a1->m_currentCount); v6(a1, (const unsigned __int8 *)v7); sub_774008(&v7); } }