MCPcopy Create free account
hub / github.com/Norbyte/bg3se / LoadMappings

Method LoadMappings

CoreLib/SymbolMapper.cpp:297–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297bool SymbolMappingLoader::LoadMappings(tinyxml2::XMLDocument* doc)
298{
299 // TODO - check version specific mappings
300 auto ele = doc->RootElement()->FirstChildElement("Mappings");
301 while (ele != nullptr) {
302 if (ele->BoolAttribute("Default")) {
303 return LoadMappingsNode(ele);
304 }
305
306 ele = ele->NextSiblingElement("Mappings");
307 }
308
309 return false;
310}
311
312bool SymbolMappingLoader::LoadMappingsNode(tinyxml2::XMLElement* mappingsNode)
313{

Callers

nothing calls this directly

Calls 3

FirstChildElementMethod · 0.45
BoolAttributeMethod · 0.45
NextSiblingElementMethod · 0.45

Tested by

no test coverage detected