mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Cleanup and overhaul (#21)
* Syntax cleanup * More minor cleanup, use Linq * Fix broken features by using correct values * Feature flags the same * Features are modular * No AlphaFS, more .NET versions * Fix appveyor * Put back identifiers, for some reason * String interpolation, modernization * Better use of GetField * XmlTextWriter to remove possible issues * Fix header for OpenMSX
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
using SabreTools.Library.DatFiles;
|
||||
|
||||
#if MONO
|
||||
using System.IO;
|
||||
#else
|
||||
using Alphaleonis.Win32.Filesystem;
|
||||
|
||||
using Stream = System.IO.Stream;
|
||||
#endif
|
||||
|
||||
namespace SabreTools.Library.Reports
|
||||
{
|
||||
/// <summary>
|
||||
@@ -65,8 +58,8 @@ namespace SabreTools.Library.Reports
|
||||
+ "\"" + _datFile.SHA256Count + "\"{0}"
|
||||
+ "\"" + _datFile.SHA384Count + "\"{0}"
|
||||
+ "\"" + _datFile.SHA512Count + "\""
|
||||
+ (_baddumpCol ? "{0}\"" + _datFile.BaddumpCount + "\"" : "")
|
||||
+ (_nodumpCol ? "{0}\"" + _datFile.BaddumpCount + "\"" : "")
|
||||
+ (_baddumpCol ? "{0}\"" + _datFile.BaddumpCount + "\"" : string.Empty)
|
||||
+ (_nodumpCol ? "{0}\"" + _datFile.BaddumpCount + "\"" : string.Empty)
|
||||
+ "\n", _separator);
|
||||
|
||||
_writer.Write(line);
|
||||
@@ -79,7 +72,7 @@ namespace SabreTools.Library.Reports
|
||||
public override void WriteHeader()
|
||||
{
|
||||
_writer.Write(string.Format("\"File Name\"{0}\"Total Size\"{0}\"Games\"{0}\"Roms\"{0}\"Disks\"{0}\"# with CRC\"{0}\"# with MD5\"{0}\"# with SHA-1\"{0}\"# with SHA-256\""
|
||||
+ (_baddumpCol ? "{0}\"BadDumps\"" : "") + (_nodumpCol ? "{0}\"Nodumps\"" : "") + "\n", _separator));
|
||||
+ (_baddumpCol ? "{0}\"BadDumps\"" : string.Empty) + (_nodumpCol ? "{0}\"Nodumps\"" : string.Empty) + "\n", _separator));
|
||||
_writer.Flush();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user