Browse Source

ScanDirInternal rather checks for . from the back of the filename, allowing for filenames with multiple instances.

Matt Benic 10 years ago
parent
commit
65ae241e29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Atomic/IO/FileSystem.cpp

+ 1 - 1
Source/Atomic/IO/FileSystem.cpp

@@ -778,7 +778,7 @@ void FileSystem::ScanDirInternal(Vector<String>& result, String path, const Stri
     if (path.Length() > startPath.Length())
         deltaPath = path.Substring(startPath.Length());
 
-    String filterExtension = filter.Substring(filter.Find('.'));
+    String filterExtension = filter.Substring(filter.FindLast('.'));
     if (filterExtension.Contains('*'))
         filterExtension.Clear();