From ef21cc449b8c961c60872a0fea57921d5e57d54f Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 28 Sep 2016 10:28:10 -0700 Subject: [PATCH] [SabreTools] Add flags for SL and OL output --- SabreTools.Helper/README.1ST | 53 +++++++++++++++++++++++++----------- SabreTools/SabreTools.cs | 8 ++++++ 2 files changed, 45 insertions(+), 16 deletions(-) diff --git a/SabreTools.Helper/README.1ST b/SabreTools.Helper/README.1ST index ffdbbea1..5319b669 100644 --- a/SabreTools.Helper/README.1ST +++ b/SabreTools.Helper/README.1ST @@ -165,8 +165,8 @@ Options: should be read as-is. -oc, --output-cmp Output in CMP format - Add outputting the created DAT to CLRMamePro format - + Add outputting the created DAT to clrmamepro format + -od, --output-dc Output in DOSCenter format Add outputting the created DAT to DOSCenter format @@ -176,19 +176,25 @@ Options: -omd5, --output-md5 Output in MD5 format Add outputting the created DAT to MD5 format + -ool, --output-ol Output in OfflineList format + Add outputting the created DAT to OfflineList XML format + -or, --output-rc Output in RomCenter format Add outputting the created DAT to RomCenter format -os, --output-sd Output in SabreDAT format Add outputting the created DAT to SabreDAT XML format - -osfv, --ouput-sfv Output in SFV format + -osfv, --output-sfv Output in SFV format Add outputting the created DAT to SFV format - -osha1, --output-sha1 Output in SHA-1 format + -osha1, -output-sha1 Output in SHA-1 format Add outputting the created DAT to SHA1 format - -ox, --output-xml Output in Logiqx XML format (default) + -osl, --output-sl Output in Software List format + Add outputting the created DAT to Software List XML format + + -ox, -output-xml Output in Logiqx XML format (default) Add outputting the created DAT to Logiqx XML format -gz, --gz-files Allow reading of GZIP files as archives @@ -357,10 +363,10 @@ Options: This is the multitool part of the program, allowing for almost every manipulation to a DAT, or set of DATs. This is also a combination of many different programs that performed DAT manipulation that work better together. - + -oc, --output-cmp Output in CMP format Add outputting the created DAT to clrmamepro format - + -od, --output-dc Output in DOSCenter format Add outputting the created DAT to DOSCenter format @@ -414,19 +420,25 @@ Options: -omd5, --output-md5 Output in MD5 format Add outputting the created DAT to MD5 format + -ool, --output-ol Output in OfflineList format + Add outputting the created DAT to OfflineList XML format + -or, --output-rc Output in RomCenter format Add outputting the created DAT to RomCenter format -os, --output-sd Output in SabreDAT format Add outputting the created DAT to SabreDAT XML format - -osfv, --ouput-sfv Output in SFV format + -osfv, --output-sfv Output in SFV format Add outputting the created DAT to SFV format - -osha1, --output-sha1 Output in SHA-1 format + -osha1, -output-sha1 Output in SHA-1 format Add outputting the created DAT to SHA1 format - -ox, --output-xml Output in Logiqx XML format (default) + -osl, --output-sl Output in Software List format + Add outputting the created DAT to Software List XML format + + -ox, -output-xml Output in Logiqx XML format (default) Add outputting the created DAT to Logiqx XML format -f=, --filename= Set the external name of the DAT @@ -886,27 +898,36 @@ Below are originally from SabreTools / DATabase - files themselves. This is good for uncompressed sets that include archives that should be read as-is. - -oc, -output-cmp Output in CMP format + -oc, --output-cmp Output in CMP format Add outputting the created DAT to clrmamepro format + + -od, --output-dc Output in DOSCenter format + Add outputting the created DAT to DOSCenter format - -om, -output-miss Output in Missfile format + -om, --output-miss Output in Missfile format Add outputting the created DAT to GoodTools miss format - -omd5, -output-md5 Output in MD5 format + -omd5, --output-md5 Output in MD5 format Add outputting the created DAT to MD5 format - -or, -output-rc Output in RomCenter format + -ool, --output-ol Output in OfflineList format + Add outputting the created DAT to OfflineList XML format + + -or, --output-rc Output in RomCenter format Add outputting the created DAT to RomCenter format - -os, -output-sd Output in SabreDAT format + -os, --output-sd Output in SabreDAT format Add outputting the created DAT to SabreDAT XML format - -osfv, -ouput-sfv Output in SFV format + -osfv, --output-sfv Output in SFV format Add outputting the created DAT to SFV format -osha1, -output-sha1 Output in SHA-1 format Add outputting the created DAT to SHA1 format + -osl, --output-sl Output in Software List format + Add outputting the created DAT to Software List XML format + -ox, -output-xml Output in Logiqx XML format (default) Add outputting the created DAT to Logiqx XML format diff --git a/SabreTools/SabreTools.cs b/SabreTools/SabreTools.cs index fa052638..d53b2e35 100644 --- a/SabreTools/SabreTools.cs +++ b/SabreTools/SabreTools.cs @@ -260,6 +260,10 @@ namespace SabreTools case "--output-md5": outputFormat |= OutputFormat.RedumpMD5; break; + case "-ool": + case "--output-ol": + outputFormat |= OutputFormat.OfflineList; + break; case "-or": case "--output-rc": outputFormat |= OutputFormat.RomCenter; @@ -276,6 +280,10 @@ namespace SabreTools case "--output-sha1": outputFormat |= OutputFormat.RedumpSHA1; break; + case "-osl": + case "--output-sl": + outputFormat |= OutputFormat.SoftwareList; + break; case "-ox": case "--output-xml": outputFormat |= OutputFormat.Xml;