mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[FileTools] CSV/TSV should be extension alone
This commit is contained in:
@@ -68,7 +68,7 @@ namespace SabreTools.Library.Tools
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Some formats only require the extension to know
|
||||
// Some formats should only require the extension to know
|
||||
if (ext == "md5")
|
||||
{
|
||||
return DatFormat.RedumpMD5;
|
||||
@@ -93,6 +93,14 @@ namespace SabreTools.Library.Tools
|
||||
{
|
||||
return DatFormat.RedumpSHA512;
|
||||
}
|
||||
if (ext == "csv")
|
||||
{
|
||||
return DatFormat.CSV;
|
||||
}
|
||||
if (ext == "tsv")
|
||||
{
|
||||
return DatFormat.TSV;
|
||||
}
|
||||
|
||||
// For everything else, we need to read it
|
||||
try
|
||||
@@ -152,14 +160,6 @@ namespace SabreTools.Library.Tools
|
||||
{
|
||||
return DatFormat.AttractMode;
|
||||
}
|
||||
else if (first.Contains("\"File Name\",\"Internal Name\",\"Description\""))
|
||||
{
|
||||
return DatFormat.CSV;
|
||||
}
|
||||
else if (first.Contains("\"File Name\"\t\"Internal Name\"\t\"Description\""))
|
||||
{
|
||||
return DatFormat.TSV;
|
||||
}
|
||||
else
|
||||
{
|
||||
return DatFormat.ClrMamePro;
|
||||
|
||||
Reference in New Issue
Block a user