mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Extensions are confusing
This commit is contained in:
@@ -292,5 +292,19 @@ namespace SabreTools.Helper
|
||||
return (norename ? String.Compare(x.Game, y.Game) : x.SystemID - y.SystemID);
|
||||
});
|
||||
}
|
||||
|
||||
public static bool IsXmlDat(string filename)
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
try
|
||||
{
|
||||
doc.LoadXml(File.ReadAllText(filename));
|
||||
}
|
||||
catch (XmlException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user