public void method_2(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { UnicodeStructureNode @class; this.title = (((@class = class286_0.method_5<UnicodeStructureNode>(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : ""); AsciiStructureNode class2; this.completion_movie = (((class2 = class286_0.method_5<AsciiStructureNode>(new AsciiStructureNode("completion_movie"))) != null) ? class2.method_8() : ""); IntegerStructureNode class3; this.defaultunlocked = (((class3 = class286_0.method_5<IntegerStructureNode>(new IntegerStructureNode("defaultunlocked"))) != null) ? class3.method_8() : 0); TagStructureNode class4; this.level = (((class4 = class286_0.method_5<TagStructureNode>(new TagStructureNode("level"))) != null) ? class4.method_8() : "No Preset Stage"); this.setlist_icon = (((class4 = class286_0.method_5<TagStructureNode>(new TagStructureNode("setlist_icon"))) != null) ? class4.method_8() : "No Icon"); this.encorep1 = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "encorep1")) != null); this.encorep2 = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "encorep2")) != null); this.aerosmith_encore_p1 = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "aerosmith_encore_p1")) != null); this.boss = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "boss")) != null); this.nocash = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "nocash")) != null); this.unlockall = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "unlockall")) != null); ArrayPointerNode class5 = new ArrayPointerNode("songs"); if (class286_0.method_6<ArrayPointerNode>(ref class5) && !(class5.method_8() is FloatListNode)) { foreach (string current in class5.method_8().method_8<string>()) { if (gh3Songlist_0.ContainsKey(current)) { this.songs.Add(gh3Songlist_0[current]); } else { Console.WriteLine("Song (" + current + ") skipped: does not exist in the songlist."); } } } }
public TGHManager(GH3Songlist gh3Songlist_1, GH3Tier gh3Tier_1, string string_2, string string_3) { this.gh3Songlist_0 = gh3Songlist_1; this.gh3Tier_0 = gh3Tier_1; this.string_0 = string_3; this.string_1 = string_2; }
public SGHManager(GH3Songlist gh3Songlist_1, GH3Setlist gh3Setlist_1, string saveLocation, string string_3) { this.gh3SongList = gh3Songlist_1; this.setlistToExport = gh3Setlist_1; this.string_0 = string_3; this.saveLocation = saveLocation; }
public SGHManager(GH3Songlist gh3Songlist_1, GH3Setlist gh3Setlist_1, string saveLocation, string string_3) { this.gh3SongList = gh3Songlist_1; this.setlistToExport = gh3Setlist_1; this.string_0 = string_3; this.saveLocation = saveLocation; }
public zzSetListUpdater(int int_1, zzPakNode2 class318_1, GH3Songlist gh3Songlist_1) { this.string_0 = gh3Songlist_1.method_8(int_1); this.int_0 = int_1; this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; }
public zzSetListUpdater(int int_1, zzPakNode2 class318_1, GH3Songlist gh3Songlist_1) { this.string_0 = gh3Songlist_1.method_8(int_1); this.int_0 = int_1; this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; }
public TGHManager(GH3Songlist gh3Songlist_1, GH3Tier gh3Tier_1, string string_2, string string_3) { this.gh3Songlist_0 = gh3Songlist_1; this.gh3Tier_0 = gh3Tier_1; this.string_0 = string_3; this.string_1 = string_2; }
public Class246(int int_1, zzPakNode2 class318_1, GH3Songlist gh3Songlist_1, bool bool_1) { this.string_0 = gh3Songlist_1.class214_0.method_0(int_1); this.int_0 = int_1; this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; this.bool_0 = bool_1; }
public Class246(int int_1, zzPakNode2 class318_1, GH3Songlist gh3Songlist_1, bool bool_1) { this.string_0 = gh3Songlist_1.class214_0.method_0(int_1); this.int_0 = int_1; this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; this.bool_0 = bool_1; }
public void method_5(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { AsciiStructureNode @class; this.prefix = (((@class = class286_0.method_5<AsciiStructureNode>(new AsciiStructureNode("prefix"))) != null) ? @class.method_8() : "general"); this.initial_movie = (((@class = class286_0.method_5<AsciiStructureNode>(new AsciiStructureNode("initial_movie"))) != null) ? @class.method_8() : ""); IntegerStructureNode class2; int num = ((class2 = class286_0.method_5<IntegerStructureNode>(new IntegerStructureNode("num_tiers"))) != null) ? class2.method_8() : 0; try { for (int i = 1; i <= num; i++) { this.tiers.Add(new GH3Tier(class286_0.method_5<StructurePointerNode>(new StructurePointerNode("tier" + i)).method_8(), gh3Songlist_0)); } } catch { throw new Exception(this.path + " setlist is corrupt: Tier/s missing."); } }
public void method_5(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { AsciiStructureNode @class; this.prefix = (((@class = class286_0.method_5 <AsciiStructureNode>(new AsciiStructureNode("prefix"))) != null) ? @class.method_8() : "general"); this.initial_movie = (((@class = class286_0.method_5 <AsciiStructureNode>(new AsciiStructureNode("initial_movie"))) != null) ? @class.method_8() : ""); IntegerStructureNode class2; int num = ((class2 = class286_0.method_5 <IntegerStructureNode>(new IntegerStructureNode("num_tiers"))) != null) ? class2.method_8() : 0; try { for (int i = 1; i <= num; i++) { this.tiers.Add(new GH3Tier(class286_0.method_5 <StructurePointerNode>(new StructurePointerNode("tier" + i)).method_8(), gh3Songlist_0)); } } catch { throw new Exception(this.path + " setlist is corrupt: Tier/s missing."); } }
public void method_2(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { UnicodeStructureNode @class; this.title = (((@class = class286_0.method_5 <UnicodeStructureNode>(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : ""); AsciiStructureNode class2; this.completion_movie = (((class2 = class286_0.method_5 <AsciiStructureNode>(new AsciiStructureNode("completion_movie"))) != null) ? class2.method_8() : ""); IntegerStructureNode class3; this.defaultunlocked = (((class3 = class286_0.method_5 <IntegerStructureNode>(new IntegerStructureNode("defaultunlocked"))) != null) ? class3.method_8() : 0); TagStructureNode class4; this.level = (((class4 = class286_0.method_5 <TagStructureNode>(new TagStructureNode("level"))) != null) ? class4.method_8() : "No Preset Stage"); this.setlist_icon = (((class4 = class286_0.method_5 <TagStructureNode>(new TagStructureNode("setlist_icon"))) != null) ? class4.method_8() : "No Icon"); this.encorep1 = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "encorep1")) != null); this.encorep2 = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "encorep2")) != null); this.aerosmith_encore_p1 = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "aerosmith_encore_p1")) != null); this.boss = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "boss")) != null); this.nocash = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "nocash")) != null); this.unlockall = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "unlockall")) != null); ArrayPointerNode class5 = new ArrayPointerNode("songs"); if (class286_0.method_6 <ArrayPointerNode>(ref class5) && !(class5.method_8() is FloatListNode)) { foreach (string current in class5.method_8().method_8 <string>()) { if (gh3Songlist_0.ContainsKey(current)) { this.songs.Add(gh3Songlist_0[current]); } else { Console.WriteLine("Song (" + current + ") skipped: does not exist in the songlist."); } } } }
public Class247(zzPakNode2 class318_1, GH3Songlist gh3Songlist_1) { this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; }
public Class247(zzPakNode2 class318_1, GH3Songlist gh3Songlist_1) { this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; }
public SGHManager(GH3Songlist gh3Songlist_1, GH3Setlist gh3Setlist_1, string string_2) : this(gh3Songlist_1, gh3Setlist_1, string_2, null) { }
public UpdateSetlistSwitcher(zzPakNode2 class318_1, GH3Songlist gh3Songlist_1, bool bool_1) { this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; this.bool_0 = bool_1; }
public GH3Tier(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { this.method_2(class286_0, gh3Songlist_0); }
public SGHManager(GH3Songlist gh3Songlist_1, GH3Setlist gh3Setlist_1, string string_2) : this(gh3Songlist_1, gh3Setlist_1, string_2, null) { }
private void method_15() { this.method_12(false); if (this.gh3Songlist_0 != null) { this.gh3Songlist_0.Clear(); this.gh3Songlist_0.gh3SetlistList.Clear(); } this.gh3Songlist_0 = null; this.SongListBox.Items.Clear(); this.Setlist_DropBox.Items.Clear(); this.ActionRequests_ListBox.Items.Clear(); //this.notifyIcon_0.Visible = false; this.method_23(); if (!Directory.Exists(this.string_0 + "log")) { Directory.CreateDirectory(this.string_0 + "log"); } Class216.smethod_0(this.string_0 + "log\\"); Class216.smethod_2(); if (this.class319_0 != null) { this.class319_0.Dispose(); } this.class319_0 = null; GC.Collect(); }
public zzSetListParser(zzPakNode2 class318_1, GH3Songlist gh3Songlist_1, bool bool_1) { this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; this.bool_0 = bool_1; }
private void method_14(bool bool_1) { LoadGameSettings loadGameSettings = new LoadGameSettings(this.string_6); if (loadGameSettings.ShowDialog() != DialogResult.OK) { return; } this.method_15(); this.string_6 = loadGameSettings.method_2(); this.method_13(); try { RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(this.string_1); this.dataFolder = (string)registryKey.GetValue("Path") + "\\DATA\\"; if (!Directory.Exists(this.dataFolder)) { throw new Exception(); } } catch { string text = KeyGenerator.OpenOrSaveFile("Find Guitar Hero " + (this.bool_0 ? "Aerosmith" : "3"), this.bool_0 ? "Guitar Hero Aerosmith Executable|Guitar Hero Aerosmith.exe" : "Guitar Hero 3 Executable|GH3.exe", true); if (string.IsNullOrEmpty(text)) { return; } try { this.dataFolder = new FileInfo(text).Directory.FullName; RegistryKey registryKey = Registry.LocalMachine.CreateSubKey(this.string_1); registryKey.SetValue("Path", this.dataFolder); this.dataFolder += "\\DATA\\"; } catch { MessageBox.Show("Guitar Hero " + (this.bool_0 ? "Aerosmith" : "3") + " is not installed properly on this computer.", "Error!"); return; } } string text2 = this.list_0[loadGameSettings.method_3()]; int int_ = loadGameSettings.method_3(); using (new Class217("QB Parse Operations")) { try { if (!this.method_16(int_) && DialogResult.Yes == MessageBox.Show("A proper backup doesn't exist. Do you wish to start backup creation? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo) && !this.method_17(int_)) { return; } zzPabNode class2 = new zzPabNode(string.Concat(new string[] { this.string_0, this.string_3, "originals\\qb", text2, ".pak.xen" }), string.Concat(new string[] { this.string_0, this.string_3, "originals\\qb", text2, ".pab.xen" }), false); GH3Songlist gH3Songlist = null; using (this.class319_0 = new zzPabNode(this.dataFolder + "PAK\\qb" + text2 + ".pak.xen", this.dataFolder + "PAK\\qb" + text2 + ".pab.xen", false)) { if (this.method_19(int_).GameSettingsAreValid()) { if (!bool_1) { goto IL_478; } } try { gH3Songlist = new GH3Songlist(this.class319_0.zzGetNode1("scripts\\guitar\\songlist.qb"), new GH3Songlist(class2.zzGetNode1("scripts\\guitar\\songlist.qb"), null)); new zzSetListParser(this.class319_0, gH3Songlist, this.bool_0).method_0(); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } this.class319_0.Dispose(); this.class319_0 = null; if (gH3Songlist != null) { DialogResult dialogResult = MessageBox.Show("Game Settings files are not compatible, but something can be recovered. Do you wish to recover when starting from backup? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNoCancel); if (dialogResult == DialogResult.Cancel) { return; } if (dialogResult == DialogResult.No) { gH3Songlist = null; } } else if (DialogResult.No == MessageBox.Show("Game Settings files are not compatible, and nothing can be recovered. Do you wish to start from backup? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo)) { return; } if (!this.method_16(int_)) { return; } KeyGenerator.smethod_19(this.dataFolder + "PAK\\qb" + text2 + ".pab.xen", string.Concat(new string[] { this.string_0, this.string_3, "lastedited\\qb", text2, ".pab.xen" }), true); KeyGenerator.smethod_19(this.dataFolder + "PAK\\qb" + text2 + ".pak.xen", string.Concat(new string[] { this.string_0, this.string_3, "lastedited\\qb", text2, ".pak.xen" }), true); KeyGenerator.smethod_19(string.Concat(new string[] { this.string_0, this.string_3, "originals\\qb", text2, ".pab.xen" }), this.dataFolder + "PAK\\qb" + text2 + ".pab.xen", true); KeyGenerator.smethod_19(string.Concat(new string[] { this.string_0, this.string_3, "originals\\qb", text2, ".pak.xen" }), this.dataFolder + "PAK\\qb" + text2 + ".pak.xen", true); IL_478:; } this.class319_0 = new zzPabNode(this.dataFolder + "PAK\\qb" + text2 + ".pak.xen", this.dataFolder + "PAK\\qb" + text2 + ".pab.xen", false); this.method_20(int_); this.gh3Songlist_0 = new GH3Songlist(this.class319_0.zzGetNode1("scripts\\guitar\\songlist.qb"), new GH3Songlist(class2.zzGetNode1("scripts\\guitar\\songlist.qb"), null)); class2.Dispose(); bool flag = false; if (gH3Songlist != null) { foreach (string current in gH3Songlist.Keys) { if (!this.gh3Songlist_0.method_3(current)) { this.gh3Songlist_0.Add(gH3Songlist[current]); flag = true; } } } if (flag) { this.method_4(new Class247(this.class319_0, this.gh3Songlist_0)); } new CustomMenuCreator(this.class319_0, this.bool_0).method_0(); new zzSetListParser(this.class319_0, this.gh3Songlist_0, this.bool_0).method_0(); if (flag && gH3Songlist.gh3SetlistList.Count != 0) { bool flag2 = false; using (Dictionary<int, GH3Setlist>.KeyCollection.Enumerator enumerator2 = gH3Songlist.gh3SetlistList.Keys.GetEnumerator()) { IL_78C: while (enumerator2.MoveNext()) { int current2 = enumerator2.Current; GH3Setlist gH3Setlist = gH3Songlist.gh3SetlistList[current2]; if (gH3Setlist.method_4()) { try { /*if (this.gh3Songlist_0.CustomBitMask == -1) { break; }*/ for (int i = 0; ; ) { int num = 1 << i; if (!((this.gh3Songlist_0.CustomBitMask & num) == 0)) goto SKIPIT; this.gh3Songlist_0.CustomBitMask |= (gH3Setlist.CustomBit = num); IL_666: gH3Setlist.prefix = "custom" + (i + 1); int num2; this.gh3Songlist_0.gh3SetlistList.Add(num2 = QbSongClass1.smethod_9("gh3_custom" + (i + 1) + "_songs"), gH3Setlist); int value; this.gh3Songlist_0.dictionary_1.Add(value = QbSongClass1.smethod_9("custom" + (i + 1) + "_progression"), new GHLink(num2)); this.gh3Songlist_0.class214_0.Add("Custom Setlist " + (i + 1), value); this.method_4(new Class246(value, this.class319_0, this.gh3Songlist_0, true)); flag2 = true; goto IL_78C; SKIPIT: i++; if (i >= 32) goto IL_666; } } catch (Exception ex2) { Console.WriteLine(ex2.ToString()); continue; } } if (gH3Setlist.method_2() == "scripts\\guitar\\guitar_download.qb") { this.gh3Songlist_0.gh3SetlistList[current2].method_0().AddRange(gH3Setlist.method_0()); this.method_4(new zzSetListUpdater(current2, this.class319_0, this.gh3Songlist_0)); } } } if (flag2) { this.method_4(new UpdateSetlistSwitcher(this.class319_0, this.gh3Songlist_0, this.bool_0)); } } new Class249(this.class319_0).method_0(); new QbDatabaseInitialModifier(this.class319_0, this.bool_0).method_0(); this.method_0(); } catch (Exception ex3) { if (this.class319_0 != null) { this.class319_0.Dispose(); this.class319_0 = null; } Console.WriteLine(ex3.Message); if (DialogResult.Yes == MessageBox.Show("Game Settings files are corrupt. Do you wish to start from backup? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo) && this.method_16(int_)) { KeyGenerator.smethod_19(string.Concat(new string[] { this.string_0, this.string_3, "originals\\qb", text2, ".pab.xen" }), this.dataFolder + "PAK\\qb" + text2 + ".pab.xen", true); KeyGenerator.smethod_19(string.Concat(new string[] { this.string_0, this.string_3, "originals\\qb", text2, ".pak.xen" }), this.dataFolder + "PAK\\qb" + text2 + ".pak.xen", true); } return; } } foreach (string current3 in this.gh3Songlist_0.class214_0.Keys) { this.Setlist_DropBox.Items.Add(current3); } this.method_12(true); if (this.Setlist_DropBox.Items.Count != 0) { this.Setlist_DropBox.SelectedIndex = 0; } this.TabControl.SelectedIndex = 1; }
public TGHManager(GH3Songlist gh3Songlist_1, GH3Tier gh3Tier_1, string string_2) : this(gh3Songlist_1, gh3Tier_1, string_2, null) { }
public TGHManager(GH3Songlist gh3Songlist_1, GH3Tier gh3Tier_1, string string_2) : this(gh3Songlist_1, gh3Tier_1, string_2, null) { }
public GH3Tier(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { this.method_2(class286_0, gh3Songlist_0); }
public GH3Setlist(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { this.method_5(class286_0, gh3Songlist_0); }
public UpdateSetlistSwitcher(zzPakNode2 class318_1, GH3Songlist gh3Songlist_1, bool bool_1) { this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; this.bool_0 = bool_1; }
public zzSetListParser(zzPakNode2 class318_1, GH3Songlist gh3Songlist_1, bool bool_1) { this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; this.bool_0 = bool_1; }
public SongData(GH3Songlist gh3Songlist_1, bool forceRB3) { this.forceRB3 = forceRB3; this.InitializeComponent(); Control arg_26_0 = this.Audio_CheckBox; this.Chart_CheckBox.Enabled = false; arg_26_0.Enabled = false; this.bool_1 = true; this.bool_0 = true; this.method_3(); this.gh3Songlist_0 = gh3Songlist_1; this.timer_0 = new Timer(); this.timer_0.Interval = 30; this.timer_0.Tick += new EventHandler(this.timer_0_Tick); }
public GH3Setlist(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0) { this.method_5(class286_0, gh3Songlist_0); }