MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / LoadConfig

Method LoadConfig

Code/CryEngine/CryNetwork/Protocol/NewMessageQueue.cpp:246–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244};
245
246CMessageQueue::CConfig* CMessageQueue::LoadConfig(const char* name)
247{
248 XmlNodeRef root = gEnv->pSystem->LoadXmlFromFile(name);
249 if (!root)
250 return 0;
251 CConfig* pConfig = new CConfig;
252 if (!pConfig->Read(root))
253 {
254 delete pConfig;
255 return 0;
256 }
257 return pConfig;
258}
259
260void CMessageQueue::DestroyConfig(CConfig* pConfig)
261{

Callers

nothing calls this directly

Calls 2

LoadXmlFromFileMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected