Exemplo n.º 1
0
        public void method_1()
        {
            var    fileStreamList = new List <Stream>();
            Stream stream         = new MemoryStream();

            KeyGenerator.smethod_1(new ZzGenericNode1("setlist", SetlistToExport.method_6()).method_8(), stream,
                                   "SET4AES4KEY9MXKR");
            var fileNameList = new List <string>();
            var list3        = new List <StructurePointerNode>();

            foreach (var current in SetlistToExport.Tiers)
            {
                foreach (var current2 in current.Songs)
                {
                    if (current2.Editable)
                    {
                        list3.Add(current2.vmethod_5());
                        if (_string0 != null && File.Exists(_string0 + "songs\\" + current2.Name + "_song.pak.xen") &&
                            File.Exists(_string0 + "music\\" + current2.Name + ".dat.xen") &&
                            File.Exists(_string0 + "music\\" + current2.Name + ".fsb.xen"))
                        {
                            fileNameList.Add(current2.Name + "_song.pak.xen");
                            fileStreamList.Add(File.OpenRead(_string0 + "songs\\" + current2.Name + "_song.pak.xen"));
                            fileNameList.Add(current2.Name + ".dat.xen");
                            fileStreamList.Add(File.OpenRead(_string0 + "music\\" + current2.Name + ".dat.xen"));
                            fileNameList.Add(current2.Name + ".fsb.xen");
                            fileStreamList.Add(File.OpenRead(_string0 + "music\\" + current2.Name + ".fsb.xen"));
                        }
                    }
                }
            }
            Stream stream2 = new MemoryStream();

            KeyGenerator.smethod_1(new ZzGenericNode1("songs", list3.ToArray()).method_8(), stream2,
                                   "SNG4AES4KEY9MXKR");
            fileNameList.Add("setlist.info");
            fileStreamList.Add(stream);
            fileNameList.Add("songs.info");
            fileStreamList.Add(stream2);
            ZipManager.smethod_0(fileNameList, _saveLocation, "SGH9ZIP2PASS4MXKR", fileStreamList.ToArray());
        }
Exemplo n.º 2
0
        public void method_1()
        {
            var    list   = new List <Stream>();
            Stream stream = new MemoryStream();

            KeyGenerator.smethod_1(new ZzGenericNode1("tier", Gh3Tier0.method_3()).method_8(), stream,
                                   "TIR4AES4KEY9MXKR");
            var list2 = new List <string>();
            var list3 = new List <StructurePointerNode>();

            foreach (var current in Gh3Tier0.Songs)
            {
                if (current.Editable)
                {
                    list3.Add(current.vmethod_5());
                    if (_string0 != null && File.Exists(_string0 + "songs\\" + current.Name + "_song.pak.xen") &&
                        File.Exists(_string0 + "music\\" + current.Name + ".dat.xen") &&
                        File.Exists(_string0 + "music\\" + current.Name + ".fsb.xen"))
                    {
                        list2.Add(current.Name + "_song.pak.xen");
                        list.Add(File.OpenRead(_string0 + "songs\\" + current.Name + "_song.pak.xen"));
                        list2.Add(current.Name + ".dat.xen");
                        list.Add(File.OpenRead(_string0 + "music\\" + current.Name + ".dat.xen"));
                        list2.Add(current.Name + ".fsb.xen");
                        list.Add(File.OpenRead(_string0 + "music\\" + current.Name + ".fsb.xen"));
                    }
                }
            }
            Stream stream2 = new MemoryStream();

            KeyGenerator.smethod_1(new ZzGenericNode1("songs", list3.ToArray()).method_8(), stream2,
                                   "SNG4AES4KEY9MXKR");
            list2.Add("tier.info");
            list.Add(stream);
            list2.Add("songs.info");
            list.Add(stream2);
            ZipManager.smethod_0(list2, _string1, "TGH9ZIP2PASS4MXKR", list.ToArray());
        }