mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Stats] Recorrect stats output
This commit is contained in:
@@ -8,6 +8,7 @@ namespace SabreTools.Helper
|
|||||||
/// The current toolset version to be used by all child applications
|
/// The current toolset version to be used by all child applications
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string Version = "v0.8.9";
|
public static string Version = "v0.8.9";
|
||||||
|
public static int HeaderHeight = 3;
|
||||||
|
|
||||||
// 0-byte file constants
|
// 0-byte file constants
|
||||||
public static long SizeZero = 0;
|
public static long SizeZero = 0;
|
||||||
|
|||||||
@@ -132,23 +132,15 @@ Please check the log folder if the stats scrolled offscreen");
|
|||||||
}
|
}
|
||||||
|
|
||||||
SortedDictionary<string, List<Rom>> newroms = DatTools.BucketByGame(datdata.Roms, false, true, logger, false);
|
SortedDictionary<string, List<Rom>> newroms = DatTools.BucketByGame(datdata.Roms, false, true, logger, false);
|
||||||
string line = " Uncompressed size: " + Style.GetBytesReadable(datdata.TotalSize);
|
logger.User(" Uncompressed size: " + Style.GetBytesReadable(datdata.TotalSize) + @"
|
||||||
logger.Log(line, Console.CursorTop, 0);
|
Games found: " + (game == -1 ? newroms.Count : game) + @"
|
||||||
line = " Games found: " + (game == -1 ? newroms.Count : game);
|
Roms found: " + datdata.RomCount + @"
|
||||||
logger.Log(line, Console.CursorTop + 1, 0);
|
Disks found: " + datdata.DiskCount + @"
|
||||||
line = " Roms found: " + datdata.RomCount;
|
Roms with CRC: " + datdata.CRCCount + @"
|
||||||
logger.Log(line, Console.CursorTop + 1, 0);
|
Roms with MD5: " + datdata.MD5Count + @"
|
||||||
line = " Disks found: " + datdata.DiskCount;
|
Roms with SHA-1: " + datdata.SHA1Count + @"
|
||||||
logger.Log(line, Console.CursorTop + 1, 0);
|
Roms with Nodump status: " + datdata.NodumpCount + @"
|
||||||
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("");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -339,9 +339,10 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now output the stats for the DAT (remaining)
|
// Now output the stats for the built files
|
||||||
Console.SetCursorPosition(0, Console.CursorTop - 2);
|
_logger.ClearBeneath(Constants.HeaderHeight);
|
||||||
_logger.User("Stats of the matched ROMs:".PadRight(79, ' '));
|
Console.SetCursorPosition(0, Constants.HeaderHeight + 1);
|
||||||
|
_logger.User("Stats of the matched ROMs:");
|
||||||
Stats.OutputStats(_matched, _logger, true);
|
Stats.OutputStats(_matched, _logger, true);
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
|||||||
Reference in New Issue
Block a user