Permalink
Browse files

Remove File extension check that only causes failure.

  • Loading branch information...
1 parent 166846b commit dfaeb3a9d17a4eeec36d46fc5b0360e60f546b75 @danzel danzel committed May 8, 2013
Showing with 0 additions and 9 deletions.
  1. +0 −9 MonoGame.Framework/Content/ContentTypeReader.cs
@@ -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)));
@@ -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)
{

0 comments on commit dfaeb3a

Please sign in to comment.