forked from mirror/openmw-tes3mp
Strange problems call for strange solutions.
This commit is contained in:
parent
8e07b7e050
commit
06a34b9e0d
1 changed files with 5 additions and 2 deletions
|
@ -71,6 +71,9 @@ class DirArchive: public Ogre::FileSystemArchive
|
||||||
|
|
||||||
bool findFile(const String& filename, std::string& copy) const
|
bool findFile(const String& filename, std::string& copy) const
|
||||||
{
|
{
|
||||||
|
if (filename.find(".tga") != std::string::npos)
|
||||||
|
return false;
|
||||||
|
|
||||||
{
|
{
|
||||||
String passed = filename;
|
String passed = filename;
|
||||||
if(filename.at(filename.length() - 1) == '*' || filename.at(filename.length() - 1) == '?' || filename.at(filename.length() - 1) == '<'
|
if(filename.at(filename.length() - 1) == '*' || filename.at(filename.length() - 1) == '?' || filename.at(filename.length() - 1) == '<'
|
||||||
|
@ -120,7 +123,7 @@ class DirArchive: public Ogre::FileSystemArchive
|
||||||
if (find != current.end() && !comp(copy, current.front()))
|
if (find != current.end() && !comp(copy, current.front()))
|
||||||
{
|
{
|
||||||
std::cout << " found";
|
std::cout << " found";
|
||||||
if (copy != *find && !lexicographical_compare(copy, *find, boost::algorithm::is_iless()))
|
if (copy != *find && !lexicographical_compare(copy, *find, boost::algorithm::is_iequal()))
|
||||||
std::cout << ", as different file " << *find;
|
std::cout << ", as different file " << *find;
|
||||||
|
|
||||||
std::cout << "." << std::endl;
|
std::cout << "." << std::endl;
|
||||||
|
|
Loading…
Reference in a new issue