// // CCCounterLabel::updateString from 0x100511970 to 0x100511a08 (152 bytes) // // 4 xrefs: // > CCCounterLabel::create @ 0x1005116bf // > CCCounterLabel::init @ 0x10051176a // > CCCounterLabel::fastUpdateCounter @ 0x100511791 // > CCCounterLabel::updateCounter @ 0x100511837 // // 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) { double v1; // xmm0_8 double v2; // xmm0_8 cocos2d::CCString *v3; // rax const char *CString; // rax char *v5; // rsi size_t v6[2]; // [rsp+0h] [rbp-20h] BYREF void *__p; // [rsp+10h] [rbp-10h] if ( a1->m_formatterType == 1 ) { v2 = (float)((float)a1->m_currentCount / 100.0); v3 = (cocos2d::CCString *)sub_1007AB580("%.2f", v6[0]); CString = cocos2d::CCString::getCString(v3); ((void (__fastcall *)(CCCounterLabel *, const char *, double))a1->setString)(a1, CString, v2); } else { GameToolbox::intToString(v6, a1->m_currentCount, v1); if ( (v6[0] & 1) != 0 ) v5 = (char *)__p; else v5 = (char *)v6 + 1; ((void (__fastcall *)(CCCounterLabel *, char *))a1->setString)(a1, v5); if ( (v6[0] & 1) != 0 ) operator delete(__p); } }