// // cocos2d::cc_utf8_trim_ws from 0x5ea588 to 0x5ea5d8 (80 bytes) // // 3 xrefs: // > cocos2d::CCLabelBMFont::updateLabel @ 0x5cd870 // > cocos2d::CCLabelBMFont::updateLabel @ 0x5cd928 // > cocos2d::CCLabelBMFont::updateLabel @ 0x5cd958 // // 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 cocos2d::cc_utf8_trim_ws(std::vector *a1) { int v2; // r4 signed int v3; // r4 int v4; // r6 signed int v5; // r7 unsigned __int16 v6; // r0 unsigned __int16 *m_finish; // r2 unsigned __int16 *v8; // r3 v2 = a1->m_finish - a1->m_start; if ( v2 > 0 ) { v3 = v2 - 1; if ( cocos2d::isspace_unicode(a1->m_start[v3]) ) { v4 = 2 * v3 - 2; do { v5 = v3; if ( v4 == -2 ) break; --v3; v6 = *(unsigned __int16 *)((char *)a1->m_start + v4); v4 -= 2; } while ( cocos2d::isspace_unicode(v6) ); m_finish = a1->m_finish; if ( v5 < m_finish - a1->m_start ) { v8 = &a1->m_start[v5]; if ( v8 != m_finish ) a1->m_finish = v8; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source