diff --git a/SabreTools.Helper/Data/Constants.cs b/SabreTools.Helper/Data/Constants.cs index b4c18f53..4b4894fe 100644 --- a/SabreTools.Helper/Data/Constants.cs +++ b/SabreTools.Helper/Data/Constants.cs @@ -8,6 +8,7 @@ namespace SabreTools.Helper /// The current toolset version to be used by all child applications /// public static string Version = "v0.8.9"; + public static int HeaderHeight = 3; // 0-byte file constants public static long SizeZero = 0; diff --git a/SabreTools.Helper/Tools/Stats.cs b/SabreTools.Helper/Tools/Stats.cs index 6194e353..831bad21 100644 --- a/SabreTools.Helper/Tools/Stats.cs +++ b/SabreTools.Helper/Tools/Stats.cs @@ -132,23 +132,15 @@ Please check the log folder if the stats scrolled offscreen"); } SortedDictionary> newroms = DatTools.BucketByGame(datdata.Roms, false, true, logger, false); - string line = " Uncompressed size: " + Style.GetBytesReadable(datdata.TotalSize); - logger.Log(line, Console.CursorTop, 0); - line = " Games found: " + (game == -1 ? newroms.Count : game); - logger.Log(line, Console.CursorTop + 1, 0); - line = " Roms found: " + datdata.RomCount; - logger.Log(line, Console.CursorTop + 1, 0); - line = " Disks found: " + datdata.DiskCount; - logger.Log(line, Console.CursorTop + 1, 0); - line = " Roms with CRC: " + datdata.CRCCount; - logger.Log(line, Console.CursorTop + 1, 0); - line = " Roms with MD5: " + datdata.MD5Count; - logger.Log(line, Console.CursorTop + 1, 0); - line = " Roms with SHA-1: " + datdata.SHA1Count; - logger.Log(line, Console.CursorTop + 1, 0); - line = " Roms with Nodump status: " + datdata.NodumpCount; - logger.Log(line, Console.CursorTop + 1, 0); - logger.User(""); + logger.User(" Uncompressed size: " + Style.GetBytesReadable(datdata.TotalSize) + @" + Games found: " + (game == -1 ? newroms.Count : game) + @" + Roms found: " + datdata.RomCount + @" + Disks found: " + datdata.DiskCount + @" + Roms with CRC: " + datdata.CRCCount + @" + Roms with MD5: " + datdata.MD5Count + @" + Roms with SHA-1: " + datdata.SHA1Count + @" + Roms with Nodump status: " + datdata.NodumpCount + @" +"); } } } diff --git a/SimpleSort/SimpleSort.cs b/SimpleSort/SimpleSort.cs index c1e8ab81..fbe9013a 100644 --- a/SimpleSort/SimpleSort.cs +++ b/SimpleSort/SimpleSort.cs @@ -339,9 +339,10 @@ namespace SabreTools } } - // Now output the stats for the DAT (remaining) - Console.SetCursorPosition(0, Console.CursorTop - 2); - _logger.User("Stats of the matched ROMs:".PadRight(79, ' ')); + // Now output the stats for the built files + _logger.ClearBeneath(Constants.HeaderHeight); + Console.SetCursorPosition(0, Constants.HeaderHeight + 1); + _logger.User("Stats of the matched ROMs:"); Stats.OutputStats(_matched, _logger, true); return success;