mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 09:09:40 +00:00
Case sensitiviy?
This commit is contained in:
parent
8ac9dd8e70
commit
fc4e4dc336
1 changed files with 7 additions and 1 deletions
|
@ -112,7 +112,13 @@ class DirArchive: public Ogre::FileSystemArchive
|
|||
}
|
||||
|
||||
pathComparer comp(delimiter, copy.size() - delimiter-1);
|
||||
return std::binary_search(current.begin(), current.end(), copy, comp);
|
||||
std::vector<std::string>::iterator find = std::lower_bound(current.begin(), current.end(), copy, comp);
|
||||
if (find != current.end() && !comp(copy, current.front()))
|
||||
{
|
||||
copy = *find;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue