//
// cocos2d::CCString::initWithFormat from 0x1800105a0 to 0x1800105e0 (64 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae134
//
// 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
//
bool cocos2d::CCString::initWithFormat(cocos2d::CCString *this, const char *a2, ...)
{
std::string *p_m_sString; // rax
va_list va; // [rsp+40h] [rbp+18h] BYREF
va_start(va, a2);
p_m_sString = &this->m_sString;
this->m_sString.m_data.m_size = 0;
if ( this->m_sString.m_data.m_capacity > 0xF )
p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;
p_m_sString->m_data.m_smallStorage._Elems[0] = 0;
return cocos2d::CCString::initWithFormatAndValist(this, a2, va);
}