Changed: Use of CFile::getApplicationDirectory

This commit is contained in:
kervala 2010-08-30 17:41:15 +02:00
parent 113e955568
commit 9fa9999627
4 changed files with 8 additions and 12 deletions

View file

@ -957,8 +957,7 @@ int main(int /* argc */, char ** /* argv */)
NLMISC::CApplicationContext myApplicationContext; NLMISC::CApplicationContext myApplicationContext;
#ifdef NL_OS_UNIX #ifdef NL_OS_UNIX
std::string homeDir = getenv("HOME"); NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
#endif // NL_OS_UNIX #endif // NL_OS_UNIX
NLMISC::CPath::addSearchPath(NL_ZVIEWER_CFG); NLMISC::CPath::addSearchPath(NL_ZVIEWER_CFG);

View file

@ -424,8 +424,7 @@ int main( int argc, char ** argv )
NLMISC::CApplicationContext appContext; NLMISC::CApplicationContext appContext;
#ifdef NL_OS_UNIX #ifdef NL_OS_UNIX
std::string homeDir = getenv("HOME"); NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
#endif // NL_OS_UNIX #endif // NL_OS_UNIX
NLMISC::CPath::addSearchPath(NL_MK_SH_ID_CFG); NLMISC::CPath::addSearchPath(NL_MK_SH_ID_CFG);

View file

@ -86,8 +86,7 @@ void init()
try try
{ {
#ifdef NL_OS_UNIX #ifdef NL_OS_UNIX
std::string homeDir = getenv("HOME"); NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
#endif // NL_OS_UNIX #endif // NL_OS_UNIX
NLMISC::CPath::addSearchPath(NL_BIB_CFG); NLMISC::CPath::addSearchPath(NL_BIB_CFG);

View file

@ -122,8 +122,7 @@ void initConfig()
try try
{ {
#ifdef NL_OS_UNIX #ifdef NL_OS_UNIX
std::string homeDir = getenv("HOME"); NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
#endif // NL_OS_UNIX #endif // NL_OS_UNIX
NLMISC::CPath::addSearchPath(NL_BIRB_CFG); NLMISC::CPath::addSearchPath(NL_BIRB_CFG);