public static void SignHash(zzPakNode2 pakNode) { if (pakNode.method_6(GameSettingsChecker._hashPath)) { pakNode.method_7(GameSettingsChecker._hashPath); } zzGenericNode1 @class = new zzGenericNode1(); @class.method_3(new UnicodeRootNode("version", GameSettingsChecker._hashPath, Assembly.GetExecutingAssembly().GetName().Version.ToString())); using (Stream26 stream = pakNode.method_17()) { stream.Position = 0L; @class.method_3(new ArrayPointerRootNode("hash", GameSettingsChecker._hashPath, new IntegerArrayNode(KeyGenerator.smethod_21(KeyGenerator.HashStream(stream._stream))))); } GC.Collect(); DateTime now = DateTime.Now; @class.method_3(new ArrayPointerRootNode("date", GameSettingsChecker._hashPath, new FloatArrayNode(new float[] { (float)now.Year, (float)now.Month, (float)now.Day }))); pakNode.method_1 <zzCocoaNode12>(GameSettingsChecker._hashPath, new zzCocoaNode12(GameSettingsChecker._hashPath, KeyGenerator.smethod_2(@class.method_8(), "MaC39SubInfo1245"))); }
public Class250(string string_2, QBCParser class362_1, zzPakNode2 class318_1, string string_3) { this.string_0 = string_2; this.class318_0 = class318_1; this.class362_0 = class362_1; this.string_1 = string_3; }
public zzFxBoost(zzPakNode2 class318_1) { this.class318_0 = class318_1; TagStructureNode @class = ((StructureHeaderNode)this.class318_0.zzGetNode1("scripts\\guitar\\guitar_events.qb").method_5 <TagStructureNode>(new TagStructureNode("event", "star_power_on")).Parent).method_5 <TagStructureNode>(new TagStructureNode("scr")); this.bool_0 = (@class.method_8() == "guitarevent_starpoweron"); }
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 GameSettingsChecker(zzPakNode2 class318_0) { if (!class318_0.method_6(GameSettingsChecker._hashPath)) { return; } zzGenericNode1 @class = new zzGenericNode1(GameSettingsChecker._hashPath, KeyGenerator.smethod_8(class318_0.method_12(GameSettingsChecker._hashPath), "MaC39SubInfo1245")); this.version = new Version(@class.method_5 <UnicodeRootNode>(new UnicodeRootNode("version")).method_7()); float[] array = @class.method_5 <ArrayPointerRootNode>(new ArrayPointerRootNode("date")).method_7().method_7 <float>(); this.date = new DateTime((int)array[0], (int)array[1], (int)array[2]); this.unkBuffer = @class.method_5 <ArrayPointerRootNode>(new ArrayPointerRootNode("hash")).method_7().method_7 <int>(); class318_0.method_7(GameSettingsChecker._hashPath); using (Stream26 stream = class318_0.method_17()) { stream.Position = 0L; // Ignore checks for external tools modifying game settings because we're not children who will dictate how people can play their game // Possibly turn this on later softly for warning the player of possible data integrity issues // this._GameSettingsUntampered = Class244.smethod_53<int>(Class244.smethod_21(Class244.smethod_43(stream.stream_0)), this.int_0); this._GameSettingsUntampered = true; } GC.Collect(); this._AssemblyVersionMatches = (Assembly.GetExecutingAssembly().GetName().Version.CompareTo(this.version) == 0); this._LoadedSuccessfully = true; if (!this._AssemblyVersionMatches) { MessageBox.Show("The game settings were created under a different version."); } if (!this._GameSettingsUntampered) { MessageBox.Show("The game settings were modified by an external tool!"); } }
public GameSettingsChecker(zzPakNode2 class318_0) { if (!class318_0.method_6(GameSettingsChecker._hashPath)) { return; } zzGenericNode1 @class = new zzGenericNode1(GameSettingsChecker._hashPath, KeyGenerator.smethod_8(class318_0.method_12(GameSettingsChecker._hashPath), "MaC39SubInfo1245")); this.version = new Version(@class.method_5<UnicodeRootNode>(new UnicodeRootNode("version")).method_7()); float[] array = @class.method_5<ArrayPointerRootNode>(new ArrayPointerRootNode("date")).method_7().method_7<float>(); this.date = new DateTime((int)array[0], (int)array[1], (int)array[2]); this.unkBuffer = @class.method_5<ArrayPointerRootNode>(new ArrayPointerRootNode("hash")).method_7().method_7<int>(); class318_0.method_7(GameSettingsChecker._hashPath); using (Stream26 stream = class318_0.method_17()) { stream.Position = 0L; // Ignore checks for external tools modifying game settings because we're not children who will dictate how people can play their game // Possibly turn this on later softly for warning the player of possible data integrity issues // this._GameSettingsUntampered = Class244.smethod_53<int>(Class244.smethod_21(Class244.smethod_43(stream.stream_0)), this.int_0); this._GameSettingsUntampered = true; } GC.Collect(); this._AssemblyVersionMatches = (Assembly.GetExecutingAssembly().GetName().Version.CompareTo(this.version) == 0); this._LoadedSuccessfully = true; if (!this._AssemblyVersionMatches) { MessageBox.Show("The game settings were created under a different version."); } if (!this._GameSettingsUntampered) { MessageBox.Show("The game settings were modified by an external tool!"); } }
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 override void vmethod_0() { using (zzPakNode2 @class = new zzPakNode2()) { @class.method_0("songs\\" + this.string_0 + ".mid.qb", this.class362_0.method_4(this.string_0)); @class.method_16(this.string_1 + "songs\\" + this.string_0 + "_song.pak.xen"); } }
private void RebuildBtn_Click(object sender, EventArgs e) { if (DialogResult.Yes != MessageBox.Show("Are you sure you wish to rebuild the container? (Overwriting File!)", "Replace Textures", MessageBoxButtons.YesNo)) { return; } if (this._texFile.method_5()) { this._texFile.method_6(); } else { string toolTipText = this.DataFolder_TreeView.SelectedNode.ToolTipText; zzPakNode2 @class = File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen")) ? new zzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false) : new zzPakNode2(toolTipText, false); @class.method_11((int)this.DataFolder_TreeView.SelectedNode.Tag).imethod_17(this._texFile.ToStream().ReadEverything()); @class.vmethod_1(); @class.Dispose(); } this.ImgList.Items.Clear(); this.method_2(); }
public static void SignHash(zzPakNode2 pakNode) { if (pakNode.method_6(GameSettingsChecker._hashPath)) { pakNode.method_7(GameSettingsChecker._hashPath); } zzGenericNode1 @class = new zzGenericNode1(); @class.method_3(new UnicodeRootNode("version", GameSettingsChecker._hashPath, Assembly.GetExecutingAssembly().GetName().Version.ToString())); using (Stream26 stream = pakNode.method_17()) { stream.Position = 0L; @class.method_3(new ArrayPointerRootNode("hash", GameSettingsChecker._hashPath, new IntegerArrayNode(KeyGenerator.smethod_21(KeyGenerator.HashStream(stream._stream))))); } GC.Collect(); DateTime now = DateTime.Now; @class.method_3(new ArrayPointerRootNode("date", GameSettingsChecker._hashPath, new FloatArrayNode(new float[] { (float)now.Year, (float)now.Month, (float)now.Day }))); pakNode.method_1<zzCocoaNode12>(GameSettingsChecker._hashPath, new zzCocoaNode12(GameSettingsChecker._hashPath, KeyGenerator.smethod_2(@class.method_8(), "MaC39SubInfo1245"))); }
private void DataFolder_TreeView_DoubleClick(object sender, EventArgs e) { if (this.DataFolder_TreeView.SelectedNode != null) { if (this.DataFolder_TreeView.SelectedNode.Tag is int && this.DataFolder_TreeView.SelectedNode.ToolTipText != "") { this.method_2(); string toolTipText = this.DataFolder_TreeView.SelectedNode.ToolTipText; zzPakNode2 @class; if (File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen"))) { @class = new zzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false); } else { @class = new zzPakNode2(toolTipText, false); } this._texFile = new TexFile(@class.method_13((int)this.DataFolder_TreeView.SelectedNode.Tag)); for (int i = 1; i <= this._texFile.TextureCount(); i++) { this.ImgList.Items.Add("Image " + i); } @class.Dispose(); return; } if (this.DataFolder_TreeView.SelectedNode.ToolTipText != "") { this.method_2(); this._texFile = new TexFile(this.DataFolder_TreeView.SelectedNode.ToolTipText); for (int j = 1; j <= this._texFile.TextureCount(); j++) { this.ImgList.Items.Add("Image " + j); } } } }
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; }
private void ChartFileBtn_Click(object sender, EventArgs e) { string fileName; if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the game track file.", "Any Supported Game Track Formats|*.qbc;*.dbc;*_song.pak.xen;*.mid;*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc|GH3 Game Track file|*_song.pak.xen|GH standard Midi file|*.mid|dB standard or GH3CP Chart file|*.chart", true)).Equals("")) { this.bool_4 = false; try { //Configures paks if (fileName.EndsWith("_song.pak.xen")) { string text2 = KeyGenerator.GetFileName(fileName).Replace("_song.pak.xen", ""); using (zzPakNode2 @class = new zzPakNode2(fileName, false)) { if ([email protected]_6("songs\\" + text2 + ".mid.qb")) { throw new Exception("MID.QB song file not found."); } this.qbcParser = new QBCParser(text2, @class.zzGetNode1("songs\\" + text2 + ".mid.qb")); goto IL_F5; } } //Configures qbc if (fileName.EndsWith(".qbc")) { this.qbcParser = new QBCParser(fileName); } //Configures midi else if (fileName.EndsWith(".mid")) { this.qbcParser = Midi2Chart.getMidiSong(fileName, this.forceRB3); } //Configures charts else { //Crashes in this this.qbcParser = new ChartParser(fileName).method_3(); } IL_F5: this.method_6(); this.method_4("No Track"); this.method_5("No Track"); this.method_8(0); Control arg_12B_0 = this.AutoConfigBtn; this.ResetBtn.Enabled = true; arg_12B_0.Enabled = true; foreach (string current in this.qbcParser.noteList.Keys) { this.method_4(current); } if (this.qbcParser.class228_2.Count != 0) { this.method_5("faceoffp1"); } if (this.qbcParser.class228_3.Count != 0) { this.method_5("faceoffp2"); } if (this.qbcParser.bpmList.Count != 0) { this.method_5("bossbattlep1"); } if (this.qbcParser.class228_5.Count != 0) { this.method_5("bossbattlep2"); } this.ChartFileTxt.Text = fileName; this.ChartFileTxt.SelectionStart = this.ChartFileTxt.TextLength; this.bool_4 = true; this.method_7(); } catch (Exception ex) { MessageBox.Show("Game Track cannot be parsed.\n" + ex.Message); } this.method_3(); } }
public Class250 method_1(zzPakNode2 class318_0, string string_0) { Dictionary<string, Track<int, NotesAtOffset>> dictionary = new Dictionary<string, Track<int, NotesAtOffset>>(); if (!this.EasyGuitarBox.SelectedItem.Equals("No Track")) { dictionary.Add("easy", this.qbcParser.noteList[(string)this.EasyGuitarBox.SelectedItem]); } if (!this.EasyRhythmBox.SelectedItem.Equals("No Track")) { dictionary.Add("rhythm_easy", this.qbcParser.noteList[(string)this.EasyRhythmBox.SelectedItem]); } if (!this.EasyCoopBox.SelectedItem.Equals("No Track")) { dictionary.Add("guitarcoop_easy", this.qbcParser.noteList[(string)this.EasyCoopBox.SelectedItem]); } if (!this.EasyCoop2Box.SelectedItem.Equals("No Track")) { dictionary.Add("rhythmcoop_easy", this.qbcParser.noteList[(string)this.EasyCoop2Box.SelectedItem]); } if (!this.MediumGuitarBox.SelectedItem.Equals("No Track")) { dictionary.Add("medium", this.qbcParser.noteList[(string)this.MediumGuitarBox.SelectedItem]); } if (!this.MediumRhythmBox.SelectedItem.Equals("No Track")) { dictionary.Add("rhythm_medium", this.qbcParser.noteList[(string)this.MediumRhythmBox.SelectedItem]); } if (!this.MediumCoopBox.SelectedItem.Equals("No Track")) { dictionary.Add("guitarcoop_medium", this.qbcParser.noteList[(string)this.MediumCoopBox.SelectedItem]); } if (!this.MediumCoop2Box.SelectedItem.Equals("No Track")) { dictionary.Add("rhythmcoop_medium", this.qbcParser.noteList[(string)this.MediumCoop2Box.SelectedItem]); } if (!this.HardGuitarBox.SelectedItem.Equals("No Track")) { dictionary.Add("hard", this.qbcParser.noteList[(string)this.HardGuitarBox.SelectedItem]); } if (!this.HardRhythmBox.SelectedItem.Equals("No Track")) { dictionary.Add("rhythm_hard", this.qbcParser.noteList[(string)this.HardRhythmBox.SelectedItem]); } if (!this.HardCoopBox.SelectedItem.Equals("No Track")) { dictionary.Add("guitarcoop_hard", this.qbcParser.noteList[(string)this.HardCoopBox.SelectedItem]); } if (!this.HardCoop2Box.SelectedItem.Equals("No Track")) { dictionary.Add("rhythmcoop_hard", this.qbcParser.noteList[(string)this.HardCoop2Box.SelectedItem]); } if (!this.ExpertGuitarBox.SelectedItem.Equals("No Track")) { dictionary.Add("expert", this.qbcParser.noteList[(string)this.ExpertGuitarBox.SelectedItem]); } if (!this.ExpertRhythmBox.SelectedItem.Equals("No Track")) { dictionary.Add("rhythm_expert", this.qbcParser.noteList[(string)this.ExpertRhythmBox.SelectedItem]); } if (!this.ExpertCoopBox.SelectedItem.Equals("No Track")) { dictionary.Add("guitarcoop_expert", this.qbcParser.noteList[(string)this.ExpertCoopBox.SelectedItem]); } if (!this.ExpertCoop2Box.SelectedItem.Equals("No Track")) { dictionary.Add("rhythmcoop_expert", this.qbcParser.noteList[(string)this.ExpertCoop2Box.SelectedItem]); } Track<int, int> class228_ = this.method_2(this.FaceOffP1Box); Track<int, int> class228_2 = this.method_2(this.FaceOffP2Box); Track<int, int> class228_3 = this.method_2(this.BossBattleP1Box); Track<int, int> class228_4 = this.method_2(this.BossBattleP2Box); this.qbcParser.noteList = dictionary; this.qbcParser.class228_2 = class228_; this.qbcParser.class228_3 = class228_2; this.qbcParser.bpmList = class228_3; this.qbcParser.class228_5 = class228_4; return new Class250(this.SongNameTxt.Text, this.qbcParser, class318_0, string_0); }
private void SaveChart_MenuItem_Click(object sender, EventArgs e) { if (this.SongListBox.SelectedIndex >= 0) { GH3Song gh3Song = (GH3Song)this.SongListBox.SelectedItem; string fileLocation = KeyGenerator.OpenOrSaveFile("Select where to save the song chart.", "GH3 Chart File|*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc", false); if (!fileLocation.Equals("") && File.Exists(this.dataFolder + "songs\\" + gh3Song.name + "_song.pak.xen")) { using (zzPakNode2 @class = new zzPakNode2(this.dataFolder + "songs\\" + gh3Song.name + "_song.pak.xen", false)) { if (fileLocation.EndsWith(".qbc")) { new QBCParser(gh3Song.name, @class.zzGetNode1("songs\\" + gh3Song.name + ".mid.qb")).qbcCreator(fileLocation, gh3Song); } else if (fileLocation.EndsWith(".chart")) { new QBCParser(gh3Song.name, @class.zzGetNode1("songs\\" + gh3Song.name + ".mid.qb")).method_1().chartCreator(fileLocation, gh3Song); } else { new QBCParser(gh3Song.name, @class.zzGetNode1("songs\\" + gh3Song.name + ".mid.qb")).method_1().dbcCreator(fileLocation, gh3Song); } return; } } return; } }
public QbDatabaseInitialModifier(zzPakNode2 class318_1, bool bool_2) { this._pakNode = class318_1; this.bool_1 = bool_2; }
private void exportSetlistAsChartsToolStripMenuItem_Click_1(object sender, EventArgs e) { if (this.gh3Songlist_0.gh3SetlistList.ContainsKey(this.int_0)) { FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); folderBrowserDialog.ShowNewFolderButton = false; folderBrowserDialog.Description = "Please select where you would like to save the charts."; folderBrowserDialog.RootFolder = Environment.SpecialFolder.DesktopDirectory; if (folderBrowserDialog.ShowDialog() != DialogResult.OK) { return; } string saveLocation = folderBrowserDialog.SelectedPath; if (saveLocation.Equals("")) { return; } foreach(GH3Tier tier in this.gh3Songlist_0.gh3SetlistList[this.int_0].tiers) { foreach (GH3Song gh3Song in tier.songs) { string fileLocation = saveLocation + "\\" + gh3Song.name + ".chart"; using (zzPakNode2 @class = new zzPakNode2(this.dataFolder + "songs\\" + gh3Song.name + "_song.pak.xen", false)) { new QBCParser(gh3Song.name, @class.zzGetNode1("songs\\" + gh3Song.name + ".mid.qb")).method_1().chartCreator(fileLocation, gh3Song); } } } } }
public Class247(zzPakNode2 class318_1, GH3Songlist gh3Songlist_1) { this.class318_0 = class318_1; this.gh3Songlist_0 = gh3Songlist_1; }
private void LoadChart_EditorBtn_Click(object sender, EventArgs e) { string fileName; if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the game track file.", "Any Supported Game Track Formats|*.qbc;*.dbc;*_song.pak.xen;*.mid;*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc|GH3 Game Track file|*_song.pak.xen|GH standard Midi file|*.mid|dB standard or GH3CP Chart file|*.chart", true)).Equals("")) { QBCParser qbcParser; try { if (fileName.EndsWith("_song.pak.xen")) { string str = KeyGenerator.GetFileName(fileName).Replace("_song.pak.xen", ""); using (zzPakNode2 @class = new zzPakNode2(fileName, false)) { if ([email protected]_6("songs\\" + str + ".mid.qb")) { throw new Exception("MID.QB song file not found."); } qbcParser = new QBCParser(str, @class.zzGetNode1("songs\\" + str + ".mid.qb")); goto IL_DA; } } if (fileName.EndsWith(".qbc")) { qbcParser = new QBCParser(fileName); } else if (fileName.EndsWith(".mid")) { qbcParser = Midi2Chart.getMidiSong(fileName, this.forceRB3MidConversionToolStripMenuItem.Checked); } else { qbcParser = new ChartParser(fileName).method_3(); } IL_DA:; } catch (Exception ex) { MessageBox.Show("Error loading game track file!\n" + ex.Message); return; } this.SongName_EditorLbl.Text = qbcParser.gh3Song_0.title; this.SelectedTrack_EditorBox.Items.Clear(); foreach (string current in qbcParser.noteList.Keys) { this.SelectedTrack_EditorBox.Items.Add(current); } this.SongEditor_Control.method_11(qbcParser); this.SelectedTrack_EditorBox.SelectedIndex = 0; this.Offset_EditorTxtBox.Text = string.Concat(qbcParser.gh3Song_0.gem_offset); } }
public CustomMenuCreator(zzPakNode2 class318_1, bool bool_2) { this.class318_0 = class318_1; this.bool_1 = bool_2; }
public Class249(zzPakNode2 class318_1) { this.class318_0 = class318_1; }
public zzFxBoost(zzPakNode2 class318_1) { this.class318_0 = class318_1; TagStructureNode @class = ((StructureHeaderNode)this.class318_0.zzGetNode1("scripts\\guitar\\guitar_events.qb").method_5<TagStructureNode>(new TagStructureNode("event", "star_power_on")).Parent).method_5<TagStructureNode>(new TagStructureNode("scr")); this.bool_0 = (@class.method_8() == "guitarevent_starpoweron"); }