Browse Source

Fix SDL double-load

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

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

@ -118,8 +118,9 @@ std::vector<plFileName> plStreamSource::GetListOfNames(const plFileName& dir, co
std::vector<plFileName> files = plFileSystem::ListDir(sDir, ("*." + ext).c_str()); std::vector<plFileName> files = plFileSystem::ListDir(sDir, ("*." + ext).c_str());
for (auto iter = files.begin(); iter != files.end(); ++iter) for (auto iter = files.begin(); iter != files.end(); ++iter)
{ {
if (fFileData.find(*iter) == fFileData.end()) // we haven't added it yet plFileName norm = iter->Normalize('/');
retVal.push_back(*iter); if (fFileData.find(norm) == fFileData.end()) // we haven't added it yet
retVal.push_back(norm);
} }
#endif // PLASMA_EXTERNAL_RELEASE #endif // PLASMA_EXTERNAL_RELEASE

Loading…
Cancel
Save