private int Compare(BatchMessageId m) { var ledgercompare = LedgerId.CompareTo(m.LedgerId); if (ledgercompare != 0) { return(ledgercompare); } var entryCompare = EntryId.CompareTo(m.EntryId); if (entryCompare != 0) { return(entryCompare); } var batchCompare = BatchIndex.CompareTo(m.BatchIndex); if (batchCompare != 0) { return(batchCompare); } var partitionCompare = PartitionIndex.CompareTo(m.PartitionIndex); if (partitionCompare != 0) { return(partitionCompare); } return(0); }
private void RefreshPartitionList() { index = new PartitionIndex(); index.LoadIndex(); if (!index.Loaded) { MessageBox.Show("No partition index found. If LuteMod is installed, you can't add songs until you start Mordhau, go into a game, and kick with a Lute until the menu opens\n\nOr choose Settings -> Install LuteMod, which now includes the partition file, and will update an existing install if necessary"); Hide(); } PopulateIndexList(); }