Changed: If --config is specified on command-line, we shouldn't check client_default.cfg in current directory

This commit is contained in:
kervala 2016-02-13 23:36:22 +01:00
parent 2f1481f60d
commit 1b344d78ed

View file

@ -201,7 +201,7 @@ 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 (!CFile::isExists("client_default.cfg"))
if (Args.haveArg("c") || !CFile::isExists("client_default.cfg"))
{
std::string currentPath = CPath::getApplicationDirectory("Ryzom");