Case-sensitivity checks on Windows

Should prevent "TigerThresher" from happening again.
This commit is contained in:
juanjp600
2016-11-10 21:45:59 -03:00
parent b4515367f2
commit 0e9c20c666
5 changed files with 53 additions and 1 deletions
+5 -1
View File
@@ -14,7 +14,11 @@ namespace Barotrauma
componentStyles = new Dictionary<string, GUIComponentStyle>();
XDocument doc;
try { doc = XDocument.Load(file); }
try
{
ToolBox.IsProperFilenameCase(file);
doc = XDocument.Load(file);
}
catch (Exception e)
{
DebugConsole.ThrowError("Loading style \"" + file + "\" failed", e);