Commit 590cd727 authored by hybrid's avatar hybrid

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
parent 6c62592d
......@@ -190,7 +190,7 @@ bool CFileSystem::moveFileArchive(u32 sourceIndex, s32 relative)
//! Adds an archive to the file system.
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;
bool ret = false;
......@@ -199,7 +199,7 @@ bool CFileSystem::addFileArchive(const io::path& filename, bool ignoreCase,
// check if the archive was already loaded
for (i = 0; i < FileArchives.size(); ++i)
{
if (filename == FileArchives[i]->getFileList()->getPath())
if (getAbsolutePath(filename) == FileArchives[i]->getFileList()->getPath())
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment