mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 17:39:40 +00:00
some file collection bug fixing
This commit is contained in:
parent
8829398bfc
commit
d9f1b64213
2 changed files with 5 additions and 3 deletions
|
@ -41,9 +41,9 @@ namespace Files
|
||||||
|
|
||||||
MultiDirCollection::MultiDirCollection (const std::vector<boost::filesystem::path>& directories,
|
MultiDirCollection::MultiDirCollection (const std::vector<boost::filesystem::path>& directories,
|
||||||
const std::string& extension, bool foldCase)
|
const std::string& extension, bool foldCase)
|
||||||
: mFiles (NameLess (foldCase))
|
: mFiles (NameLess (!foldCase))
|
||||||
{
|
{
|
||||||
NameEqual equal (foldCase);
|
NameEqual equal (!foldCase);
|
||||||
|
|
||||||
for (std::vector<boost::filesystem::path>::const_iterator iter = directories.begin();
|
for (std::vector<boost::filesystem::path>::const_iterator iter = directories.begin();
|
||||||
iter!=directories.end(); ++iter)
|
iter!=directories.end(); ++iter)
|
||||||
|
|
|
@ -27,7 +27,9 @@ namespace Files
|
||||||
char l = std::tolower (left[i]);
|
char l = std::tolower (left[i]);
|
||||||
char r = std::tolower (right[i]);
|
char r = std::tolower (right[i]);
|
||||||
|
|
||||||
if (l>=r)
|
if (l<r)
|
||||||
|
return true;
|
||||||
|
if (l>r)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue