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
@@ -184,6 +184,7 @@ namespace Barotrauma
spritePath = spritePath.Replace("[GENDER]", (this.gender == Gender.Female) ? "f" : "");
spritePath = spritePath.Replace("[HEADID]", HeadSpriteId.ToString());
ToolBox.IsProperFilenameCase(spritePath);
string fileName = Path.GetFileNameWithoutExtension(spritePath);
//go through the files in the directory to find a matching sprite