Beispiel #1
0
 static void WriteVersionNum()
 {
     using (MemoryStream stream = new MemoryStream())
     {
         byte[] byteArray = System.Text.Encoding.Default.GetBytes(VersionManager.VersionNum);
         stream.Write(byteArray, 0, byteArray.Length);
         EncoderStream.Encoder(VersionManager.strCueOutPath + "/VersionNum.encoder", stream);
     }
 }
Beispiel #2
0
        static void Process()
        {
            InitXML();
            m_lstResourceList = new List <AutoPb.ResourceItem>();

            foreach (Common.AeestStruce item in m_AssetList)
            {
                ProcessFile(item);
            }

            m_XMlDoc.Save(VersionManager.strCueOutPath + "/version.xml");

            using (MemoryStream memoryStream = new MemoryStream())
            {
                ProtoBuf.Serializer.Serialize <List <AutoPb.ResourceItem> >(memoryStream, m_lstResourceList);

                EncoderStream.Encoder(VersionManager.strCueOutPath + "/SourceList.encoder", memoryStream);
            }

            WriteVersionNum();
        }