mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-11 03:54:48 +00:00
Changed: Support -config/-c parameter passed by Ryzom Installer
This commit is contained in:
parent
6e35fe7ef0
commit
b4a199afe2
1 changed files with 4 additions and 0 deletions
|
@ -205,6 +205,10 @@ int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
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);
|
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
||||||
|
|
||||||
CPath::setCurrentPath(currentPath);
|
CPath::setCurrentPath(currentPath);
|
||||||
|
|
Loading…
Reference in a new issue