public void method_0() { byte[] byte_; ZipManager.ExtractBytesFrom(_string1, out byte_, "songs.info", "TGH9ZIP2PASS4MXKR"); var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR")); foreach (StructurePointerNode class302 in @class.Nodes) { var gH3Song = new Gh3Song(class302); gH3Song.Editable = true; _gh3Songlist0.method_0(gH3Song, _string0 != null); } ZipManager.ExtractBytesFrom(_string1, out byte_, "tier.info", "TGH9ZIP2PASS4MXKR"); Gh3Tier0.method_1(new Gh3Tier( (StructureHeaderNode) new ZzGenericNode1("tier", KeyGenerator.smethod_8(byte_, "TIR4AES4KEY9MXKR")) .Nodes[0], _gh3Songlist0)); if (_string0 != null) { var list = new List <string>(); var list2 = new List <string>(); foreach (var current in Gh3Tier0.Songs) { if (current.Editable) { list.Add(current.Name + "_song.pak.xen"); list2.Add(_string0 + "songs\\" + current.Name + "_song.pak.xen"); list.Add(current.Name + ".dat.xen"); list2.Add(_string0 + "music\\" + current.Name + ".dat.xen"); list.Add(current.Name + ".fsb.xen"); list2.Add(_string0 + "music\\" + current.Name + ".fsb.xen"); } } ZipManager.smethod_11(_string1, list2, list, "TGH9ZIP2PASS4MXKR"); } }
public void ImportSGH() { byte[] byte_; ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "songs.info", "SGH9ZIP2PASS4MXKR"); var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR")); foreach (StructurePointerNode class302 in @class.Nodes) { var gH3Song = new Gh3Song(class302) { Editable = true }; _gh3SongList.method_0(gH3Song, _string0 != null); } ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "setlist.info", "SGH9ZIP2PASS4MXKR"); SetlistToExport.method_1(new Gh3Setlist( (StructureHeaderNode) new ZzGenericNode1("setlist", KeyGenerator.smethod_8(byte_, "SET4AES4KEY9MXKR")) .Nodes[0], _gh3SongList)); if (_string0 == null) { return; } var list = new List <string>(); var list2 = new List <string>(); foreach (var current in SetlistToExport.Tiers) { foreach (var current2 in current.Songs) { if (!current2.Editable) { continue; } list.Add(current2.Name + "_song.pak.xen"); list2.Add(_string0 + "songs\\" + current2.Name + "_song.pak.xen"); list.Add(current2.Name + ".dat.xen"); list2.Add(_string0 + "music\\" + current2.Name + ".dat.xen"); list.Add(current2.Name + ".fsb.xen"); list2.Add(_string0 + "music\\" + current2.Name + ".fsb.xen"); } } ZipManager.smethod_11(_saveLocation, list2, list, "SGH9ZIP2PASS4MXKR"); }