//
// cocos2d::CCString::doubleValue from 0x1007ab110 to 0x1007ab13f (47 bytes)
//
// 3 xrefs:
// > cocos2d::CCConfiguration::getNumber @ 0x10051a17a
// > GameLevelManager::isTimeValid @ 0x1005386b9
// > GameLevelManager::getTimeLeft @ 0x100538c59
//
// 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)
{
std::uint8_t sizex2; // al
sizex2 = a1->m_sString.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
{
if ( LODWORD(a1->m_sString.m_data.m_long.size) )
return atof(a1->m_sString.m_data.m_long.longStorage);
}
else if ( sizex2 )
{
return atof(a1->m_sString.m_data.m_short.shortStorage.__elems_);
}
return 0.0;
}