From 7237736922ccad42f38715c17d23cdefdf4f594b Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 23 Jan 2016 18:50:17 +0100 Subject: [PATCH] Changed: Make absolute program path (useful if launched from current directory under Linux) Changed: Set process name for logs --HG-- branch : develop --- code/nel/src/misc/cmd_args.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/nel/src/misc/cmd_args.cpp b/code/nel/src/misc/cmd_args.cpp index 9140778b8..13d08428b 100644 --- a/code/nel/src/misc/cmd_args.cpp +++ b/code/nel/src/misc/cmd_args.cpp @@ -262,7 +262,10 @@ bool CCmdArgs::parse(const std::vector &argv) // first argument is always the program name _ProgramName = CFile::getFilename(argv.front()); - _ProgramPath = CPath::standardizePath(CFile::getPath(argv.front())); + _ProgramPath = CPath::makePathAbsolute(CPath::standardizePath(CFile::getPath(argv.front())), CPath::getCurrentPath(), true); + + // set process name for logs + CLog::setProcessName(_ProgramName); // arguments count uint argc = argv.size();