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

Method LoadInt

source/YamlHelper.cpp:319–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317//-------------------------------------
318
319INT YamlLoadHelper::LoadInt(const std::string key)
320{
321 bool bFound;
322 std::string value = m_yamlHelper.GetMapValue(*m_pMapYaml, key, bFound);
323 if (value == "")
324 {
325 m_bDoGetMapRemainder = false;
326 throw std::runtime_error(m_currentMapName + ": Missing: " + key);
327 }
328 return strtol(value.c_str(), NULL, 0);
329}
330
331UINT YamlLoadHelper::LoadUint(const std::string key)
332{

Callers 3

LoadSnapshotMethod · 0.80
LoadSnapshotMethod · 0.80
JoyLoadSnapshotFunction · 0.80

Calls 1

GetMapValueMethod · 0.80

Tested by

no test coverage detected