From b4a199afe254c05b1e648ff8d83ad3c58a5aa422 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 23 Jan 2016 18:58:58 +0100 Subject: [PATCH] Changed: Support -config/-c parameter passed by Ryzom Installer --- code/ryzom/client/src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 61a157262..d357f65ca 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -205,6 +205,10 @@ int main(int argc, char **argv) { std::string currentPath = CPath::getApplicationDirectory("Ryzom"); + // append config ID to directory + if (Args.haveArg("c")) + currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("c").front(); + if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath); CPath::setCurrentPath(currentPath);