Merge pull request #34522 from kramer425/mono-windows-path-ext-fix
Fix mono on windows path ext error
This commit is contained in:
commit
58c07f27fc
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ namespace GodotTools.Utils
|
|||
searchDirs.AddRange(pathDirs);
|
||||
|
||||
string nameExt = Path.GetExtension(name);
|
||||
bool hasPathExt = string.IsNullOrEmpty(nameExt) || windowsExts.Contains(nameExt, StringComparer.OrdinalIgnoreCase);
|
||||
bool hasPathExt = !string.IsNullOrEmpty(nameExt) && windowsExts.Contains(nameExt, StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
searchDirs.Add(System.IO.Directory.GetCurrentDirectory()); // last in the list
|
||||
|
||||
|
|
Loading…
Reference in a new issue