mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: Use of CFile::getApplicationDirectory
This commit is contained in:
parent
ee40f8f9b5
commit
47b3d5ce60
4 changed files with 8 additions and 12 deletions
|
@ -957,8 +957,7 @@ int main(int /* argc */, char ** /* argv */)
|
|||
NLMISC::CApplicationContext myApplicationContext;
|
||||
|
||||
#ifdef NL_OS_UNIX
|
||||
std::string homeDir = getenv("HOME");
|
||||
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
|
||||
NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
|
||||
#endif // NL_OS_UNIX
|
||||
|
||||
NLMISC::CPath::addSearchPath(NL_ZVIEWER_CFG);
|
||||
|
|
|
@ -424,8 +424,7 @@ int main( int argc, char ** argv )
|
|||
NLMISC::CApplicationContext appContext;
|
||||
|
||||
#ifdef NL_OS_UNIX
|
||||
std::string homeDir = getenv("HOME");
|
||||
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
|
||||
NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
|
||||
#endif // NL_OS_UNIX
|
||||
|
||||
NLMISC::CPath::addSearchPath(NL_MK_SH_ID_CFG);
|
||||
|
|
|
@ -86,8 +86,7 @@ void init()
|
|||
try
|
||||
{
|
||||
#ifdef NL_OS_UNIX
|
||||
std::string homeDir = getenv("HOME");
|
||||
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
|
||||
NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
|
||||
#endif // NL_OS_UNIX
|
||||
|
||||
NLMISC::CPath::addSearchPath(NL_BIB_CFG);
|
||||
|
|
|
@ -122,8 +122,7 @@ void initConfig()
|
|||
try
|
||||
{
|
||||
#ifdef NL_OS_UNIX
|
||||
std::string homeDir = getenv("HOME");
|
||||
NLMISC::CPath::addSearchPath( homeDir + "/.nel");
|
||||
NLMISC::CPath::addSearchPath(NLMISC::CFile::getApplicationDirectory("NeL"));
|
||||
#endif // NL_OS_UNIX
|
||||
|
||||
NLMISC::CPath::addSearchPath(NL_BIRB_CFG);
|
||||
|
|
Loading…
Reference in a new issue