|
|
@ -203,13 +203,18 @@ int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
|
|
|
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// create parent directory
|
|
|
|
|
|
|
|
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
|
|
|
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
|
|
|
|
|
|
|
|
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
|
|
|
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CPath::setCurrentPath(currentPath);
|
|
|
|
if (!CPath::setCurrentPath(currentPath)) return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef TEST_CRASH_COUNTER
|
|
|
|
#ifdef TEST_CRASH_COUNTER
|
|
|
|