diff --git a/NBTExplorer.csproj b/NBTExplorer.csproj
index 22dcb6e..6218082 100644
--- a/NBTExplorer.csproj
+++ b/NBTExplorer.csproj
@@ -70,9 +70,9 @@
4
-
+
False
- References\Substrate.dll
+ ..\Substrate\SubstrateCS\bin\Debug\Substrate.dll
diff --git a/References/Substrate.dll b/References/Substrate.dll
index effec2e..04c1b5b 100644
Binary files a/References/Substrate.dll and b/References/Substrate.dll differ
diff --git a/Windows/MainForm.cs b/Windows/MainForm.cs
index 69160b0..26a8dd1 100644
--- a/Windows/MainForm.cs
+++ b/Windows/MainForm.cs
@@ -138,6 +138,8 @@ namespace NBTExplorer.Windows
OpenFileDialog ofd = new OpenFileDialog();
ofd.RestoreDirectory = true;
ofd.Multiselect = true;
+ ofd.Filter = "All Files|*|NBT Files (*.dat, *.schematic)|*.dat;*.nbt;*.schematic|Region Files (*.mca, *.mcr)|*.mca;*.mcr";
+ ofd.FilterIndex = 0;
if (ofd.ShowDialog() == DialogResult.OK) {
OpenPaths(ofd.FileNames);
@@ -167,6 +169,8 @@ namespace NBTExplorer.Windows
{
_nodeTree.Nodes.Clear();
+ int failCount = 0;
+
foreach (string path in paths) {
if (Directory.Exists(path)) {
DirectoryDataNode node = new DirectoryDataNode(path);
@@ -185,6 +189,8 @@ namespace NBTExplorer.Windows
_nodeTree.Nodes.Add(CreateUnexpandedNode(node));
AddPathToHistory(GetRecentFiles(), path);
}
+ else
+ failCount++;
}
}
@@ -194,6 +200,10 @@ namespace NBTExplorer.Windows
UpdateUI();
UpdateOpenMenu();
+
+ if (failCount > 0) {
+ MessageBox.Show("One or more selected files failed to open.");
+ }
}
private void OpenMinecraftDirectory ()