Exemplo n.º 1
0
        public virtual void Load()
        {
            if (!File.Exists(this.GameDataFile))
            {
                throw new FileNotFoundException();
            }

            //File > Byte > XOR > ToString > Replace > Base64 > Gzip
            byte[] data        = File.ReadAllBytes(this.GameDataFile);
            string datazip     = Encoding.ASCII.GetString(Crypt.XOR(data, 0xB)).Split('\0')[0];
            string resultPlist = Crypt.GZipDecompress(GameConvert.FromBase64(datazip));

            this.DataPlist = new Plist(Encoding.ASCII.GetBytes(resultPlist));
            GC.Collect();
        }