//
// cocos2d::CCString::boolValue from 0x1007ab140 to 0x1007ab191 (81 bytes)
//
// 86 xrefs:
// > GameStatsManager::isItemEnabled @ 0x1000778d5
// > LevelSettingsObject::objectFromDict @ 0x100103216
// > LevelSettingsObject::objectFromDict @ 0x10010324e
// > LevelSettingsObject::objectFromDict @ 0x1001032b6
// > LevelSettingsObject::objectFromDict @ 0x1001032ea
// > LevelSettingsObject::objectFromDict @ 0x100103322
// > LevelSettingsObject::objectFromDict @ 0x10010335a
// > LevelSettingsObject::objectFromDict @ 0x100103392
// > LevelSettingsObject::objectFromDict @ 0x1001033ca
// > LevelSettingsObject::objectFromDict @ 0x100103402
// > LevelSettingsObject::objectFromDict @ 0x10010357a
// > LevelSettingsObject::objectFromDict @ 0x10010365a
// > LevelSettingsObject::objectFromDict @ 0x100103692
// > LevelSettingsObject::objectFromDict @ 0x1001036ca
// > LevelSettingsObject::objectFromDict @ 0x100103702
// > LevelSettingsObject::objectFromDict @ 0x10010373a
// > LevelSettingsObject::objectFromDict @ 0x100103772
// > LevelSettingsObject::objectFromDict @ 0x1001037aa
// > LevelSettingsObject::objectFromDict @ 0x1001037e2
// > LevelSettingsObject::objectFromDict @ 0x10010381a
// > LevelSettingsObject::objectFromDict @ 0x100103852
// > LevelSettingsObject::objectFromDict @ 0x10010388a
// > LevelSettingsObject::objectFromDict @ 0x1001038c2
// > LevelSettingsObject::objectFromDict @ 0x1001038fa
// > LevelSettingsObject::objectFromDict @ 0x100103932
// > LevelSettingsObject::objectFromDict @ 0x10010396a
// > LevelSettingsObject::objectFromDict @ 0x1001039a2
// > LevelSettingsObject::objectFromDict @ 0x1001039da
// > LevelSettingsObject::objectFromDict @ 0x100103a4a
// > LevelSettingsObject::objectFromDict @ 0x100103aba
// > LevelSettingsObject::objectFromDict @ 0x100103af2
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x100104e8f
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x100104ec4
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10031c547
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10031ca38
// > CCAnimatedSprite::loadType @ 0x100350421
// > CCAnimatedSprite::loadType @ 0x100350431
// > GameManager::getGameVariable @ 0x100377262
// > GameManager::isIconUnlocked @ 0x100377f85
// > GameManager::isColorUnlocked @ 0x100378603
// > GameManager::getUGV @ 0x100384176
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x10046d8a2
// > cocos2d::CCConfiguration::getBool @ 0x10051a011
// > GJGameLevel::create @ 0x10052f4be
// > GJGameLevel::create @ 0x10052f597
// > GJGameLevel::create @ 0x10052f670
// > GJGameLevel::create @ 0x10052fac4
// > GJGameLevel::create @ 0x100530789
// > GJGameLevel::create @ 0x10053082d
// > GJLevelList::create @ 0x100531db7
// > GJUserScore::create @ 0x1005334a1
// > GJUserScore::create @ 0x10053384f
// > GJUserScore::create @ 0x100533cc9
// > GJSearchObject::createFromKey @ 0x1005391a2
// > GJSearchObject::createFromKey @ 0x1005391b9
// > GJSearchObject::createFromKey @ 0x1005391d1
// > GJSearchObject::createFromKey @ 0x100539204
// > GJSearchObject::createFromKey @ 0x10053921c
// > GJSearchObject::createFromKey @ 0x100539234
// > GJSearchObject::createFromKey @ 0x10053924c
// > GJSearchObject::createFromKey @ 0x100539264
// > GJSearchObject::createFromKey @ 0x10053927c
// > GJSearchObject::createFromKey @ 0x100539294
// > GJSearchObject::createFromKey @ 0x1005392ac
// > GJSearchObject::createFromKey @ 0x1005392c4
// > GJSearchObject::createFromKey @ 0x1005392dc
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x10054468b
// > GJUserMessage::create @ 0x10054dc54
// > GJUserMessage::create @ 0x10054dc84
// > GJComment::create @ 0x100550bc0
// > GameLevelManager::getDiffVal @ 0x10055a7f3
// > GameLevelManager::getLenVal @ 0x10055aa33
// > GameLevelManager::getBoolForKey @ 0x10055af2d
// > SpriteDescription::initDescription @ 0x10056d012
// > MusicDownloadManager::addSongObjectFromString @ 0x10058bdcc
// > SongInfoObject::create_2 @ 0x10058c963
// > LevelSearchLayer::init @ 0x100629eca
// > LevelSearchLayer::toggleDifficulty @ 0x10062b268
// > LevelSearchLayer::checkDiff @ 0x10062c843
// > LevelSearchLayer::checkTime @ 0x10062c943
// > SpriteAnimationManager::createAnimations @ 0x100721559
// > SpriteAnimationManager::createAnimations @ 0x100721785
// > SpriteAnimationManager::loadAnimations @ 0x1007224d4
// > SpriteAnimationManager::loadAnimations @ 0x10072252c
// > SpriteAnimationManager::loadAnimations @ 0x100722584
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1007c7cd9
//
// 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 __fastcall cocos2d::CCString::boolValue(cocos2d::CCString *a1)
{
std::uint8_t sizex2; // cl
std::array *longStorage; // rdi
sizex2 = a1->m_sString.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
{
if ( !LODWORD(a1->m_sString.m_data.m_long.size) )
return 0;
longStorage = (std::array *)a1->m_sString.m_data.m_long.longStorage;
if ( longStorage->__elems_[0] == 48 && !longStorage->__elems_[1] )
return 0;
return strcmp(longStorage->__elems_, "false") != 0;
}
if ( sizex2 )
{
longStorage = &a1->m_sString.m_data.m_short.shortStorage;
if ( a1->m_sString.m_data.m_short.shortStorage.__elems_[0] != 48
|| a1->m_sString.m_data.m_short.shortStorage.__elems_[1] )
{
return strcmp(longStorage->__elems_, "false") != 0;
}
}
return 0;
}