Move particles into a new subdirectory

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7460 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-01-17 01:04:23 +00:00
parent e0f27de3d1
commit 685cbd1c14
12 changed files with 9 additions and 4 deletions

View File

@ -53,7 +53,7 @@ ParticleKind* ParticleKindManager::getParticles(const char* name)
{ {
try try
{ {
ParticleKind* newkind = new ParticleKind(file_manager->getDataFile(name)); ParticleKind* newkind = new ParticleKind(file_manager->getGfxFile(name));
m_kinds[name] = newkind; m_kinds[name] = newkind;
return newkind; return newkind;
} }

View File

@ -356,7 +356,11 @@ std::string FileManager::getDataFile(const std::string& fname) const
{ {
return m_root_dir+"/data/"+fname; return m_root_dir+"/data/"+fname;
} // getDataFile } // getDataFile
//-----------------------------------------------------------------------------
std::string FileManager::getGfxFile(const std::string& fname) const
{
return m_root_dir+"/data/gfx/"+fname;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
/** If the directory specified in path does not exist, it is created. /** If the directory specified in path does not exist, it is created.
* \params path Directory to test. * \params path Directory to test.

View File

@ -98,9 +98,10 @@ public:
std::string getDataFile (const std::string& fname) const; std::string getDataFile (const std::string& fname) const;
std::string getHighscoreFile (const std::string& fname) const; std::string getHighscoreFile (const std::string& fname) const;
std::string getChallengeFile (const std::string& fname) const; std::string getChallengeFile (const std::string& fname) const;
std::string getTutorialFile (const std::string& fname) const; std::string getTutorialFile (const std::string& fname) const;
std::string getLogFile (const std::string& fname) const; std::string getLogFile (const std::string& fname) const;
std::string getItemFile (const std::string& fname) const; std::string getItemFile (const std::string& fname) const;
std::string getGfxFile (const std::string& fname) const;
std::string getMusicFile (const std::string& fname) const; std::string getMusicFile (const std::string& fname) const;
std::string getSFXFile (const std::string& fname) const; std::string getSFXFile (const std::string& fname) const;
std::string getFontFile (const std::string& fname) const; std::string getFontFile (const std::string& fname) const;

View File

@ -1477,7 +1477,7 @@ void Kart::loadData()
try try
{ {
m_nitro = new ParticleEmitter( m_nitro = new ParticleEmitter(
new ParticleKind(file_manager->getDataFile("nitro.xml")), new ParticleKind(file_manager->getGfxFile("nitro.xml")),
position, getNode()); position, getNode());
} }
catch (std::runtime_error& e) catch (std::runtime_error& e)