From 2882fcde1775e18ff0e17ea0d376e986f670bb02 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Sat, 18 Apr 2015 16:41:58 -0400 Subject: [PATCH] Add a few more known NBT extensions to the file pattern for directory enumeration. Closes #21. File-based open can already handle all extensions, from #31. --- NBTModel/Data/Nodes/NbtFileDataNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NBTModel/Data/Nodes/NbtFileDataNode.cs b/NBTModel/Data/Nodes/NbtFileDataNode.cs index 8508a54..866d812 100644 --- a/NBTModel/Data/Nodes/NbtFileDataNode.cs +++ b/NBTModel/Data/Nodes/NbtFileDataNode.cs @@ -16,7 +16,7 @@ namespace NBTExplorer.Model private CompoundTagContainer _container; - private static Regex _namePattern = new Regex(@"\.(dat|nbt|schematic)$"); + private static Regex _namePattern = new Regex(@"\.(dat|nbt|schematic|dat_mcr|dat_old|bpt|rc)$"); private NbtFileDataNode (string path, CompressionType compressionType) {