Fixed issue with bad comparison for get all files with extension filter

master
Lodle 2013-10-31 09:32:42 -07:00
parent aba26e987e
commit 19ad167a60
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/*
/*
Desura is the leading indie game distribution platform
Copyright (C) 2011 Mark Chandler (Desura Net Pty Ltd)
@ -458,7 +458,7 @@ void getAllFiles(Path path, std::vector<Path> &outList, std::vector<std::string>
{
auto ext = subPath.getFile().getFileExt();
if (std::find(begin(*extsFilter), end(*extsFilter), ext) == end(*extsFilter))
if (std::find(begin(*extsFilter), end(*extsFilter), ext) != end(*extsFilter))
{
if (!bValidFile)
throw gcException(ERR_INVALID, gcString("Failed to convert filename to usable UTF8 string. ({0})", subPath.getFullPath()));