|
|
@ -211,14 +211,10 @@ int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
|
|
|
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
|
|
|
|
|
|
|
|
|
|
|
nlinfo("Current path 1: %s", currentPath.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// append profile ID to directory
|
|
|
|
// append profile ID to directory
|
|
|
|
if (Args.haveArg("p"))
|
|
|
|
if (Args.haveArg("p"))
|
|
|
|
currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("p").front();
|
|
|
|
currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("p").front();
|
|
|
|
|
|
|
|
|
|
|
|
nlinfo("Current path 2: %s", currentPath.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
|
|
|
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
|
|
|
|
|
|
|
|
|
|
|
CPath::setCurrentPath(currentPath);
|
|
|
|
CPath::setCurrentPath(currentPath);
|
|
|
|