public GameSettingsChecker(ZzPakNode2 class3180) { if (!class3180.method_6(HashPath)) { return; } var @class = new ZzGenericNode1(HashPath, KeyGenerator.smethod_8(class3180.method_12(HashPath), "MaC39SubInfo1245")); Version = new Version(@class.method_5(new UnicodeRootNode("version")).method_7()); var array = @class.method_5(new ArrayPointerRootNode("date")).method_7().method_7 <float>(); Date = new DateTime((int)array[0], (int)array[1], (int)array[2]); UnkBuffer = @class.method_5(new ArrayPointerRootNode("hash")).method_7().method_7 <int>(); class3180.method_7(HashPath); using (var stream = class3180.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); GameSettingsUntampered = true; } GC.Collect(); AssemblyVersionMatches = (Assembly.GetExecutingAssembly().GetName().Version.CompareTo(Version) == 0); LoadedSuccessfully = true; if (!AssemblyVersionMatches) { MessageBox.Show("The game settings were created under a different version."); } if (!GameSettingsUntampered) { MessageBox.Show("The game settings were modified by an external tool!"); } }
public static void SignHash(ZzPakNode2 pakNode) { if (pakNode.method_6(HashPath)) { pakNode.method_7(HashPath); } var @class = new ZzGenericNode1(); @class.method_3(new UnicodeRootNode("version", HashPath, Assembly.GetExecutingAssembly().GetName().Version.ToString())); using (var stream = pakNode.method_17()) { stream.Position = 0L; @class.method_3(new ArrayPointerRootNode("hash", HashPath, new IntegerArrayNode(KeyGenerator.smethod_21(KeyGenerator.HashStream(stream.Stream))))); } GC.Collect(); var now = DateTime.Now; @class.method_3(new ArrayPointerRootNode("date", HashPath, new FloatArrayNode(new[] { now.Year, now.Month, (float)now.Day }))); pakNode.method_1(HashPath, new ZzCocoaNode12(HashPath, KeyGenerator.smethod_2(@class.method_8(), "MaC39SubInfo1245"))); }
public Class250(string string2, QbcParser class3621, ZzPakNode2 class3181, string string3) { _string0 = string2; _class3180 = class3181; Class3620 = class3621; _string1 = string3; }
public ZzSetListUpdater(int int1, ZzPakNode2 class3181, Gh3Songlist gh3Songlist1) { _string0 = gh3Songlist1.method_8(int1); _int0 = int1; _class3180 = class3181; _gh3Songlist0 = gh3Songlist1; }
public Class246(int int1, ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) { _string0 = gh3Songlist1.Class2140.method_0(int1); _int0 = int1; _class3180 = class3181; _gh3Songlist0 = gh3Songlist1; _bool0 = bool1; }
public override void vmethod_0() { using (var @class = new ZzPakNode2()) { @class.method_0("songs\\" + _string0 + ".mid.qb", Class3620.method_4(_string0)); @class.method_16(_string1 + "songs\\" + _string0 + "_song.pak.xen"); } }
public ZzFxBoost(ZzPakNode2 class3181) { _class3180 = class3181; var @class = ((StructureHeaderNode)_class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb") .method_5(new TagStructureNode("event", "star_power_on")) .Parent).method_5(new TagStructureNode("scr")); _bool0 = (@class.method_8() == "guitarevent_starpoweron"); }
private void DataFolder_TreeView_DoubleClick(object sender, EventArgs e) { if (_dataFolderTreeView.SelectedNode != null) { if (_dataFolderTreeView.SelectedNode.Tag is int && _dataFolderTreeView.SelectedNode.ToolTipText != "") { DisposeTexFile(); var toolTipText = _dataFolderTreeView.SelectedNode.ToolTipText; ZzPakNode2 pakNode; if (File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen"))) { pakNode = new ZzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false); } else { pakNode = new ZzPakNode2(toolTipText, false); } _currentTexFile = new TexFile(pakNode.method_13((int)_dataFolderTreeView.SelectedNode.Tag)); for (var i = 1; i <= _currentTexFile.TextureCount(); i++) { _imgList.Items.Add("Image " + i); } pakNode.Dispose(); return; } if (_dataFolderTreeView.SelectedNode.ToolTipText != "") { DisposeTexFile(); _currentTexFile = new TexFile(_dataFolderTreeView.SelectedNode.ToolTipText); for (var j = 1; j <= _currentTexFile.TextureCount(); j++) { _imgList.Items.Add("Image " + j); } } } }
public QbDatabaseInitialModifier(ZzPakNode2 class3181, bool bool2) { _pakNode = class3181; _bool1 = bool2; }
public Class249(ZzPakNode2 class3181) { _class3180 = class3181; }
public ZzSetListParser(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) { _class3180 = class3181; _gh3Songlist0 = gh3Songlist1; _bool0 = bool1; }
public Class247(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1) { _class3180 = class3181; _gh3Songlist0 = gh3Songlist1; }
public UpdateSetlistSwitcher(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) { _class3180 = class3181; _gh3Songlist0 = gh3Songlist1; _bool0 = bool1; }
public CustomMenuCreator(ZzPakNode2 class3181, bool bool2) { _class3180 = class3181; _bool1 = bool2; }