Check for Resources on case sensitive fs.

This commit is contained in:
Connor Brewster 2016-07-01 15:33:32 -06:00
parent f2d798232f
commit 292a5e90e0

View file

@ -46,6 +46,12 @@ pub fn resources_dir_path() -> PathBuf {
break;
}
path.pop();
// Check for Resources on mac when using a case sensitive filesystem.
path.push("Resources");
if path.is_dir() {
break;
}
path.pop();
}
*dir = Some(path.to_str().unwrap().to_owned());
path