Skip to content

Commit

Permalink
Remove File extension check that only causes failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
danzel committed May 8, 2013
1 parent 166846b commit dfaeb3a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions MonoGame.Framework/Content/ContentTypeReader.cs
Expand Up @@ -114,12 +114,6 @@ internal static string Normalize(string fileName, string[] extensions)
if (files.Any(s => s == file))
return fileName;

// Check the file extension
if (!string.IsNullOrEmpty(Path.GetExtension(fileName)))
{
return null;
}

// FirstOrDefault returns null as the default if the file is not found. This crashed Path.Combine so check
// for it first.
string file2 = files.FirstOrDefault(s => extensions.Any(ext => s.ToLower() == (file.ToLower() + ext)));
Expand All @@ -137,9 +131,6 @@ public static string Normalize(string fileName, string[] extensions)
if (File.Exists(fileName))
return fileName;
#endif
// Check the file extension
if (!string.IsNullOrEmpty(Path.GetExtension(fileName)))
return null;

foreach (string ext in extensions)
{
Expand Down

0 comments on commit dfaeb3a

Please sign in to comment.