mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 23:56:15 +00:00
Changed: Use --profile instead of --config for client profile expression
This commit is contained in:
parent
26c720395b
commit
65190aff5e
1 changed files with 5 additions and 5 deletions
|
@ -171,7 +171,7 @@ int main(int argc, char **argv)
|
|||
|
||||
Args.setVersion(getDisplayVersion());
|
||||
Args.setDescription("Ryzom client");
|
||||
Args.addArg("c", "config", "id", "Use this configuration to determine what directory to use by default");
|
||||
Args.addArg("p", "profile", "id", "Use this profile to determine what directory to use by default");
|
||||
Args.addAdditionalArg("login", "Login to use", true, false);
|
||||
Args.addAdditionalArg("password", "Password to use", true, false);
|
||||
Args.addAdditionalArg("shard_id", "Shard ID to use", true, false);
|
||||
|
@ -206,13 +206,13 @@ int main(int argc, char **argv)
|
|||
LoginShardId = std::numeric_limits<uint32>::max();
|
||||
|
||||
// if client_default.cfg is not in current directory, use application default directory
|
||||
if (Args.haveArg("c") || !CFile::isExists("client_default.cfg"))
|
||||
if (Args.haveArg("p") || !CFile::isExists("client_default.cfg"))
|
||||
{
|
||||
std::string currentPath = CPath::getApplicationDirectory("Ryzom");
|
||||
|
||||
// append config ID to directory
|
||||
if (Args.haveArg("c"))
|
||||
currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("c").front();
|
||||
// append profile ID to directory
|
||||
if (Args.haveArg("p"))
|
||||
currentPath = NLMISC::CPath::standardizePath(currentPath) + Args.getArg("p").front();
|
||||
|
||||
if (!CFile::isExists(currentPath)) CFile::createDirectory(currentPath);
|
||||
|
||||
|
|
Loading…
Reference in a new issue