Exemplo n.º 1
0
        /// <summary>
        /// Sort the input DAT and get the key to be used by the item
        /// </summary>
        /// <param name="datdata">Dat to match against</param>
        /// <param name="sorted">True if the DAT is already sorted accordingly, false otherwise (default)</param>
        /// <returns>Key to try to use</returns>
        private string SortAndGetKey(DatFile datdata, bool sorted = false)
        {
            // If we're not already sorted, take care of it
            if (!sorted)
            {
                datdata.BucketByBestAvailable();
            }

            // Now that we have the sorted type, we get the proper key
            return(Utilities.GetKeyFromDatItem(this, datdata.SortedBy));
        }