// // CCCounterLabel::updateString from 0x10003ac54 to 0x10003ad10 (188 bytes) // // 2 xrefs: // > CCCounterLabel::init @ 0x10003ab54 // > CCCounterLabel::updateCounter @ 0x10003abcc // // 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 __fastcall CCCounterLabel::updateString(CCCounterLabel *a1) { cocos2d::CCString *v2; // x0 const char *CString; // x0 void **v4; // x1 void *__p[2]; // [xsp+8h] [xbp-28h] BYREF char v6; // [xsp+1Fh] [xbp-11h] if ( a1->m_formatterType == 1 ) { v2 = (cocos2d::CCString *)sub_100268F4C("%.2f", (float)((float)a1->m_currentCount / 100.0)); CString = cocos2d::CCString::getCString(v2); ((void (__fastcall *)(CCCounterLabel *, const char *))a1->setString)(a1, CString); } else { GameToolbox::intToString(__p, (unsigned int)a1->m_currentCount); if ( v6 >= 0 ) v4 = __p; else v4 = (void **)__p[0]; ((void (__fastcall *)(CCCounterLabel *, void **))a1->setString)(a1, v4); if ( v6 < 0 ) operator delete(__p[0]); } }