Ported to irrlicht 1.6: as default filesystems would ignore the path, resulting in incorrect

wheels being loaded for the karts (since atm all kart wheels have the same name).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4094 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2009-10-07 04:57:20 +00:00
parent 5057697ede
commit 68981649b3

View File

@@ -135,7 +135,9 @@ FileManager::FileManager()
pushTextureSearchPath(m_root_dir+"/data/textures");
pushModelSearchPath (m_root_dir+"/data/models" );
pushMusicSearchPath (m_root_dir+"/data/music" );
m_file_system->addFolderFileArchive("data/models");
m_file_system->addFolderFileArchive("data/models",
/*ignoreCase*/false,
/*ignorePaths*/false);
// Add more paths from the STK_MUSIC_PATH environment variable
if(getenv("SUPERTUXKART_MUSIC_PATH")!=NULL)
{
@@ -198,14 +200,18 @@ XMLNode *FileManager::createXMLTree(const std::string &filename)
void FileManager::pushModelSearchPath(const std::string& path)
{
m_model_search_path.push_back(path);
m_file_system->addFolderFileArchive(path.c_str());
m_file_system->addFolderFileArchive(path.c_str(),
/*ignoreCase*/false,
/*ignorePaths*/false);
} // pushModelSearchPath
//-----------------------------------------------------------------------------
void FileManager::pushTextureSearchPath(const std::string& path)
{
m_texture_search_path.push_back(path);
m_file_system->addFolderFileArchive(path.c_str());
m_file_system->addFolderFileArchive(path.c_str(),
/*ignoreCase*/false,
/*ignorePaths*/false);
} // pushTextureSearchPath
//-----------------------------------------------------------------------------