//
// cocos2d::CCString::doubleValue from 0x100268cb4 to 0x100268ce0 (44 bytes)
//
// 3 xrefs:
// > GameLevelManager::isTimeValid @ 0x100099540
// > GameLevelManager::getTimeLeft @ 0x100099834
// > cocos2d::CCConfiguration::getNumber @ 0x100325254
//
// 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
//
double __fastcall cocos2d::CCString::doubleValue(cocos2d::CCString *a1)
{
if ( a1->m_sString.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
if ( LODWORD(a1->m_sString.m_data.m_long.size) )
return atof((const char *)a1->m_sString.m_data.m_long.capacitym1);
return 0.0;
}
if ( !a1->m_sString.m_data.m_short.shortStorage.__elems_[22] )
return 0.0;
return atof((const char *)&a1->m_sString);
}