mirror of
https://github.com/jaquadro/NBTExplorer.git
synced 2025-01-25 00:36:26 +00:00
added warning about incompatible filetype extensions
This commit is contained in:
parent
4a1887d28b
commit
ec095b946f
1 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,12 @@ namespace NBTExplorer.Model
|
|||
public static bool SupportedNamePattern (string path)
|
||||
{
|
||||
path = Path.GetFileName(path);
|
||||
return _namePattern.IsMatch(path);
|
||||
if (_namePattern.IsMatch(path)) {
|
||||
return true;
|
||||
} else {
|
||||
Console.WriteLine("File doesn't have the appropriate extension: '{0}'", path);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
protected override NodeCapabilities Capabilities
|
||||
|
|
Loading…
Reference in a new issue