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:
parent
e0f27de3d1
commit
685cbd1c14
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
|
@ -101,6 +101,7 @@ public:
|
|||||||
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;
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user