MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / LoadBool

Method LoadBool

source/YamlHelper.cpp:355–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool YamlLoadHelper::LoadBool(const std::string key)
356{
357 bool bFound;
358 std::string value = m_yamlHelper.GetMapValue(*m_pMapYaml, key, bFound);
359 if (value == "true")
360 return true;
361 else if (value == "false")
362 return false;
363 m_bDoGetMapRemainder = false;
364 throw std::runtime_error(m_currentMapName + ": Missing: " + key);
365}
366
367std::string YamlLoadHelper::LoadString_NoThrow(const std::string& key, bool& bFound)
368{

Callers 15

LoadSnapshotMethod · 0.80
SC01_LoadSnapshotMethod · 0.80
RGB_LoadSnapshotFunction · 0.80
MemLoadSnapshotFunction · 0.80
VideoLoadSnapshotMethod · 0.80
LoadSnapshotMethod · 0.80
LoadSnapshotMethod · 0.80
LoadSnapshotMethod · 0.80
LoadSnapshotFloppyMethod · 0.80
LoadSnapshotMethod · 0.80
CpuLoadSnapshotFunction · 0.80

Calls 1

GetMapValueMethod · 0.80

Tested by

no test coverage detected