Skip to content

Commit

Permalink
Possible fix for failing Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
micheldebree committed Sep 30, 2023
1 parent 3883e51 commit bda3702
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace Editor
m_List.push_back({ DirectoryEntry::Folder, path });
else if (is_regular_file(path, error_code))
{
std::string extension = fs::path(path).extension();
std::string extension = fs::path(path).extension().string();

// filter out files with extensions on the hide list
bool showFile = true;
Expand All @@ -185,7 +185,8 @@ namespace Editor
m_List.push_back({ DirectoryEntry::File, file });

// Sort the list
std::sort(m_List.begin(), m_List.end(), [](const DirectoryEntry& inEntry1, const DirectoryEntry& inEntry2) {
std::sort(m_List.begin(), m_List.end(), [](const DirectoryEntry& inEntry1, const DirectoryEntry& inEntry2)
{
// If the types are the same, lets check the filenames against each other (and ignore case .. which means a transformation per comparison, not fast.. but who cares! This is disk operation stuff)
if (inEntry1.m_Type == inEntry2.m_Type)
{
Expand All @@ -209,7 +210,6 @@ namespace Editor
}

// Otherwise just prefer one type over the other
return inEntry1.m_Type < inEntry2.m_Type;
});
return inEntry1.m_Type < inEntry2.m_Type; });
}
}

0 comments on commit bda3702

Please sign in to comment.