Bugifxes for new loader (when STK was not started in root

directorym files were not found).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-02-26 12:15:51 +00:00
parent 23076d39e8
commit 8e108ff600
3 changed files with 16 additions and 15 deletions

View File

@ -57,7 +57,7 @@ void KartProperties::load(const std::string filename, const std::string node,
try
{
lisp::Parser parser;
root = parser.parse(loader->getPath(filename));
root = parser.parse(filename);
const lisp::Lisp* const LISP = root->getLisp(node);
if(!LISP)

View File

@ -192,7 +192,8 @@ std::string Loader::getHomeDir() const
{
DIRNAME = ".";
}
DIRNAME += DIR_SEPARATOR+CONFIGDIR;
DIRNAME += DIR_SEPARATOR;
DIRNAME += CONFIGDIR;
#endif
return DIRNAME;
} // getHomeDir

View File

@ -792,7 +792,7 @@ void Track::loadTrack(std::string filename_)
sgSetVec4 ( m_diffuse_col, 1.0f, 1.0f, 1.0f, 1.0f );
lisp::Parser parser;
const lisp::Lisp* const ROOT = parser.parse(loader->getPath(m_filename));
const lisp::Lisp* const ROOT = parser.parse(m_filename);
const lisp::Lisp* const LISP = ROOT->getLisp("tuxkart-track");
if(!LISP)