Browse Source

StreamSource is case insensitive

Adam Johnson 12 years ago
parent
commit
b2a95a07bb
  1. 3
      Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp

3
Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp

@ -107,7 +107,8 @@ std::vector<plFileName> plStreamSource::GetListOfNames(const plFileName& dir, co
std::vector<plFileName> retVal; std::vector<plFileName> retVal;
for (auto curData = fFileData.begin(); curData != fFileData.end(); curData++) for (auto curData = fFileData.begin(); curData != fFileData.end(); curData++)
{ {
if ((curData->second.fDir == sDir) && (curData->second.fExt == ext)) if ((curData->second.fDir.AsString().CompareI(sDir.AsString()) == 0) &&
(curData->second.fExt.CompareI(ext) == 0))
retVal.push_back(curData->second.fFilename); retVal.push_back(curData->second.fFilename);
} }

Loading…
Cancel
Save