From 45565e2bb8dc4e28d4e04976f90ab8e5720bd118 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 14 Apr 2016 18:19:19 +0200 Subject: [PATCH] Changed: Temporary checks for a OS X 10.7 bug... --- code/nel/src/misc/cmd_args.cpp | 2 ++ code/ryzom/client/src/client.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/code/nel/src/misc/cmd_args.cpp b/code/nel/src/misc/cmd_args.cpp index 65aae5769..a0801272b 100644 --- a/code/nel/src/misc/cmd_args.cpp +++ b/code/nel/src/misc/cmd_args.cpp @@ -249,6 +249,8 @@ bool CCmdArgs::parse(const std::vector &argv) { std::string name = argv[i]; + nlinfo("Argument %d: %s", i, name.c_str()); + #ifdef NL_OS_WINDOWS // support / and - under Windows, arguments should be at least 2 characters if (name.size() > 1 && (name[0] == '-' || name[0] == '/')) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 255e8e95b..cf1b6905d 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -211,10 +211,14 @@ int main(int argc, char **argv) { std::string currentPath = CPath::getApplicationDirectory("Ryzom"); + nlinfo("Current path 1: %s", currentPath.c_str()); + // append profile ID to directory if (Args.haveArg("p")) currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("p").front(); + nlinfo("Current path 2: %s", currentPath.c_str()); + if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath); CPath::setCurrentPath(currentPath);