Backed out changeset: 44cd3beacab6

--HG--
branch : compatibility-develop
This commit is contained in:
kervala 2016-04-14 18:56:48 +02:00
parent c0f51c1c5b
commit 7d9ff0ad72
2 changed files with 0 additions and 6 deletions

View file

@ -249,8 +249,6 @@ bool CCmdArgs::parse(const std::vector<std::string> &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] == '/'))

View file

@ -211,14 +211,10 @@ 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);