Make path check use absolutePaths on both sides. Fixes duplicated archive insertion problems.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2878 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2009-11-17 12:12:45 +00:00
parent 6c62592d5b
commit 590cd72782
1 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ bool CFileSystem::moveFileArchive(u32 sourceIndex, s32 relative)
//! Adds an archive to the file system. //! Adds an archive to the file system.
bool CFileSystem::addFileArchive(const io::path& filename, bool ignoreCase, bool CFileSystem::addFileArchive(const io::path& filename, bool ignoreCase,
bool ignorePaths, E_FILE_ARCHIVE_TYPE archiveType) bool ignorePaths, E_FILE_ARCHIVE_TYPE archiveType)
{ {
IFileArchive* archive = 0; IFileArchive* archive = 0;
bool ret = false; bool ret = false;
@ -199,7 +199,7 @@ bool CFileSystem::addFileArchive(const io::path& filename, bool ignoreCase,
// check if the archive was already loaded // check if the archive was already loaded
for (i = 0; i < FileArchives.size(); ++i) for (i = 0; i < FileArchives.size(); ++i)
{ {
if (filename == FileArchives[i]->getFileList()->getPath()) if (getAbsolutePath(filename) == FileArchives[i]->getFileList()->getPath())
return true; return true;
} }