public void LoadInfo() { using (var zip = ZipFile) { var doc = ScribeUtil.LoadDocument(zip["info"].GetBytes()); info = DirectXmlToObject.ObjectFromXml <ReplayInfo>(doc.DocumentElement, true); } }
public bool LoadInfo() { using (var zip = ZipFile) { var infoFile = zip["info"]; if (infoFile == null) { return(false); } var doc = ScribeUtil.LoadDocument(infoFile.GetBytes()); info = DirectXmlToObject.ObjectFromXml <ReplayInfo>(doc.DocumentElement, true); } return(true); }