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

Method LoadConfig

Code/CryEngine/CryNetwork/Protocol/MessageQueue.cpp:205–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203};
204
205CMessageQueue::CConfig* CMessageQueue::LoadConfig(const char* name)
206{
207 XmlNodeRef root = gEnv->pSystem->LoadXmlFromFile(name);
208 if (!root)
209 return 0;
210 CConfig* pConfig = new CConfig;
211 if (!pConfig->Read(root))
212 {
213 delete pConfig;
214 return 0;
215 }
216 return pConfig;
217}
218
219void CMessageQueue::DestroyConfig(CConfig* pConfig)
220{

Callers

nothing calls this directly

Calls 2

LoadXmlFromFileMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected