From f880967ba99ae2d75da8af893deaca68baf68e86 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 20 Jun 2013 18:14:24 -0400 Subject: [PATCH] Fix SDL double-load --- Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp b/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp index c1d6847d..ba8b145a 100644 --- a/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp +++ b/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp @@ -118,8 +118,9 @@ std::vector plStreamSource::GetListOfNames(const plFileName& dir, co std::vector files = plFileSystem::ListDir(sDir, ("*." + ext).c_str()); for (auto iter = files.begin(); iter != files.end(); ++iter) { - if (fFileData.find(*iter) == fFileData.end()) // we haven't added it yet - retVal.push_back(*iter); + plFileName norm = iter->Normalize('/'); + if (fFileData.find(norm) == fFileData.end()) // we haven't added it yet + retVal.push_back(norm); } #endif // PLASMA_EXTERNAL_RELEASE