Improvements to support for archives

This commit is contained in:
Robert Osfield
2004-11-12 08:55:11 +00:00
parent f30146a9fe
commit b60304f8ad
5 changed files with 70 additions and 11 deletions

View File

@@ -47,7 +47,17 @@ void PagedLOD::setDatabasePath(const std::string& path)
char& lastCharacter = _databasePath[_databasePath.size()-1];
const char unixSlash = '/';
const char winSlash = '\\';
if (lastCharacter==winSlash)
{
lastCharacter = unixSlash;
}
else if (lastCharacter!=unixSlash)
{
_databasePath += unixSlash;
}
/*
// make sure the last character is the appropriate slash
#ifdef WIN32
if (lastCharacter==unixSlash)
@@ -68,6 +78,7 @@ void PagedLOD::setDatabasePath(const std::string& path)
_databasePath += unixSlash;
}
#endif
*/
}
}