Beispiel #1
0
 public void LoadInfo()
 {
     using (var zip = ZipFile)
     {
         var doc = ScribeUtil.LoadDocument(zip["info"].GetBytes());
         info = DirectXmlToObject.ObjectFromXml <ReplayInfo>(doc.DocumentElement, true);
     }
 }
Beispiel #2
0
        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);
        }