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

Method LoadBuiltinMappings

CoreLib/SymbolMapper.cpp:278–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278bool SymbolMappingLoader::LoadBuiltinMappings(int resourceId)
279{
280 auto xml = GetExeResource(resourceId);
281
282 if (!xml) {
283 ERR("Couldn't load binary mappings resource");
284 return false;
285 }
286
287 tinyxml2::XMLDocument doc;
288 auto err = doc.Parse(xml->c_str(), xml->size());
289 if (err != tinyxml2::XML_SUCCESS) {
290 ERR("Couldn't parse binary mappings XML");
291 return false;
292 }
293
294 return LoadMappings(&doc);
295}
296
297bool SymbolMappingLoader::LoadMappings(tinyxml2::XMLDocument* doc)
298{

Callers 1

FindLibrariesMethod · 0.80

Calls 3

GetExeResourceFunction · 0.85
ParseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected