mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, FileTools] Add checks for MD5, SFV, and SHA1 files
This commit is contained in:
@@ -52,7 +52,7 @@ namespace SabreTools.Helper
|
||||
{
|
||||
ext = ext.Substring(1);
|
||||
}
|
||||
if (ext != "dat" && ext != "xml")
|
||||
if (ext != "dat" && ext != "md5" && ext != "sfv" && ext != "sha1" && ext != "txt" && ext != "xml")
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -67,6 +67,21 @@ namespace SabreTools.Helper
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Some formats only require the extension to know
|
||||
if (ext == "md5")
|
||||
{
|
||||
return OutputFormat.RedumpMD5;
|
||||
}
|
||||
if (ext == "sfv")
|
||||
{
|
||||
return OutputFormat.RedumpSFV;
|
||||
}
|
||||
if (ext == "sha1")
|
||||
{
|
||||
return OutputFormat.RedumpSHA1;
|
||||
}
|
||||
|
||||
// For everything else, we need to read it
|
||||
try
|
||||
{
|
||||
// Get the first two lines to check
|
||||
|
||||
Reference in New Issue
Block a user