forked from mirrors/NBTExplorer
When opening files directly, try opening as NBT if no registered filetypes were able to open them.
Allows associating *.bpt, *.rs, *.thaum, and other extensions with NBTExplorer.
This commit is contained in:
parent
a9f40fc596
commit
a279bb281e
1 changed files with 8 additions and 6 deletions
|
@ -231,6 +231,8 @@ namespace NBTExplorer.Controllers
|
||||||
node = item.Value.NodeCreate(path);
|
node = item.Value.NodeCreate(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node == null)
|
||||||
|
node = NbtFileDataNode.TryCreateFrom(path);
|
||||||
if (node != null)
|
if (node != null)
|
||||||
_nodeTree.Nodes.Add(CreateUnexpandedNode(node));
|
_nodeTree.Nodes.Add(CreateUnexpandedNode(node));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue